-

 -

(0)

EEPROM

, 04 2017 . 23:56 +

: -1.10.1 AD7755 TFT LCD , 🤑 , - .


 -1.10.1 AD7755  ATMega8 (700x525, 95Kb)

, +3,3 +50, 220 . , , , 2 , , , AD7755. , , . , , . - , , . , USB- Aliexpress 49₽, +5, .



, , , . , EEPROM. EEPROM - 100 000 . 4000 1 , EEPROM 25 . , , DWORD (32 , 4 ). TRIM, SSD EEPROM, , EEPROM (512 ATMega8, 4 1 ) ((512/4)*100 000)/4000=3 200 ⋅. . , EEPROM ATMega , WORD DWORD -
, , .


EEPROM ? ? EEPROM AVR?


- / , 3,7 , , . EEPROM .


. , (R1, R2) (PC0). 🎄.



 EEPROM    (640x323, 19Kb)

, +5 Aliexpress, ( ), , +4,2 - . . 2106, . 2 . 1000 , , , , . , - (AVCC, AREF).


220? ( ), Aliexpress USB- , 1,5...2 . , , , 4 EEPROM. , , CH340G USB-UART, . . , , , AVR.


: Watchdog'🐶, , , , +1...2, (AC back, DC back) RESET, END. - RESET .


(BASCOM-AVR):





Config Pind.6 = Input ' ,
Config Adc = Single , Prescaler = 16 , Reference = Internal '
'
Dim Currentcounts As Dword , Checkcounts As Dword , Emptydword As Dword
Dim Megacounts As Byte
Dim Eepromaddress As Byte ' 256 (64 ) &H00 &HFF
Dim Voltage As Word ' ,

Emptydword = &HFFFFFFFF ' !!!!!11
' 32 (DWORD) (
' &H104, DWORD.
' Megacounts

Readeeprom Megacounts , &H104
If Megacounts = &HFF Then ' ,
Megacounts = 0
Writeeeprom Megacounts , &H104
Elseif Megacounts = &HFE Then
Print "Counter locked!" ' !
End
' 4 294 967 295 * 255 = 1095216660225,
' 274 877 906.
' .
End If
' EEPROM (TRIM :)
'
' EEPROM,
' .
For Eepromaddress = 0 To &HFF Step 4
Readeeprom Currentcounts , Eepromaddress
If Currentcounts = &HFFFFFFFF Then
Eepromaddress = Eepromaddress - 4
Readeeprom Currentcounts , Eepromaddress
Eepromaddress = Eepromaddress + 4
Exit For '
End If
Next Eepromaddress
' , Eepromaddress &H00,
' EEPROM. !
If Eepromaddress = &H00 Then
If Currentcounts <> &HFFFFFFFF Then
Print "Erasing EEPROM..."
For Eepromaddress = 0 To &HFF Step 4
Writeeeprom Emptydword , Eepromaddress
Next Eepromaddress
End If
End If
Print "Null place:" ; Hex(eepromaddress) ' ,
Print "Previous counts:" ; Hex(megacounts) ; " " ; Hex(currentcounts) ' ,
'

Start Adc '
Do
Voltage = Getadc(0) ' , . ,
' ,
If Pind.6 = 0 Then '
While Pind.6 = 0 : Wend ' .
' 5 =)
If Currentcounts = &HFFFFFFFF Then ' ,
' .
' &H00 !
Incr Megacounts
Writeeeprom Megacounts , &H100
Currentcounts = 0
Else
Incr Currentcounts ' : 0,25
End If
Print Hex(megacounts) ; " " ; Currentcounts ' print,
' . .
End If
If Voltage < 450 Then '! ! 450
' . -0,5.
Stop Adc ' .. .. ..
Disable Interrupts ' ٨
Repeatwrite: ' !
Writeeeprom Currentcounts , Eepromaddress
Readeeprom Checkcounts , Eepromaddress
If Currentcounts <> Checkcounts Then Goto Repeatwrite ',
' , Checkcounts Currentcounts
' ???
Print "Saved " ; Hex(currentcounts) ' ,
' . ,
' .
End ' .
End If
Loop
End ' .



, . 6 .₽. - , Android. , - , ap , 🙃. , Travel - , Apple - 1 .₽. 50, microUSB 49₽ Aliexpress. iPhone 4S - , iPhone 7 Plus . , , Apple Inc. U2, BGA-, 6 .₽., . , , , , . . , U2 . , : ‼️iPhone Android.‼️ 🔴 Apple 🔴 , , , , +5,5 ( USB ) +5, . , .



:  
(0)

, 21 2012 . 01:00 +

, CHR$ , : .


:


, - . , , . - .

  , . ( ), . 12 ( , , , you_bastards USB- 400 ). , , , : (POWER SUPPLY) , 12 1 ; (AC ADAPTOR) 5V 500mA, . , Apple , USB- . , , , .


: noname ( ) , AA (1.5 * 3 = 4.5V).
• USB-, , .
• .
• +5V ( molex): , ( ). , very well.


( , ): (), , (I, ). (), , , ( ). , , , , . , , U I, : , . , 800...1200 , .



:  
(6)

, 24 2009 . 22:26 +
-    // , // . , - - . , , ( ) .
, , ( .. ) 80- - .
 (320x221, 13Kb) , , . Noname . , - DECT-, indoor. , : , - , / , , . .
 , , , . , - () - miniusb cowon. , . , )
- , , ; . , - .
knee-made, , , - .



:  
(18)

.

, 30 2008 . 21:46 +
- . ?

! ! , !!! ! . .
, . , , . , ? , , , , ? , , -, "" . - . , :)
SaBok, , () :) 20 , ( ).
- . () . , ...
.......


Before
it comes knocking at your door
Before
you know for sure
this is what you were waiting for
© pet shop boys



- Queen, .


:  

 : [1]