2
 $regfile = "m32def.dat" $crystal = 8000000 Config Portc = Output Dim I As Integer Dim C As Integer Dim D As Integer Dim U As Integer Dim V As Integer Dim B As Byte Dim X As Byte Dim Y As Byte Dim Z As Byte B = 64 Writeeeprom B , 0 B = 121 Writeeeprom B , 1 B = 36 Writeeeprom B , 2 B = 48 Writeeeprom B , 3 B = 25 Writeeeprom B , 4 B = 18 Writeeeprom B , 5 B = 2 Writeeeprom B , 6 B = 120 Writeeeprom B , 7 B = 0 Writeeeprom B , 8 B = 16 Writeeeprom B , 9 Inicio:  For I = 0 To 999  C = I / 100  V = C * 100  V = I - V  D = V / 10  U = D * 10  U = V - U Readeeprom X , U Readeeprom Y , D Readeeprom Z , C Shiftout Portc.0 , Portc.1 , X , 1 Shiftout Portc.0 , Portc.1 , Y , 1 Shiftout Portc.0 , Portc.1 , Z , 1 Portc.2 = 1 Waitms 5 Portc.2 = 0 Waitms 5 Next I Goto Inicio

Progra

Embed Size (px)

DESCRIPTION

prograa

Citation preview

7/21/2019 Progra

http://slidepdf.com/reader/full/progra-56fabc57b185a 1/1

$regfile = "m32def.dat"$crystal = 8000000

Config Portc = OutputDim I As IntegerDim C As IntegerDim D As IntegerDim U As IntegerDim V As IntegerDim B As ByteDim X As ByteDim Y As ByteDim Z As Byte

B = 64Writeeeprom B , 0B = 121Writeeeprom B , 1B = 36Writeeeprom B , 2B = 48Writeeeprom B , 3B = 25Writeeeprom B , 4

B = 18Writeeeprom B , 5B = 2Writeeeprom B , 6B = 120Writeeeprom B , 7B = 0Writeeeprom B , 8B = 16Writeeeprom B , 9

Inicio: For I = 0 To 999

 C = I / 100 V = C * 100 V = I - V D = V / 10 U = D * 10 U = V - UReadeeprom X , UReadeeprom Y , DReadeeprom Z , CShiftout Portc.0 , Portc.1 , X , 1Shiftout Portc.0 , Portc.1 , Y , 1Shiftout Portc.0 , Portc.1 , Z , 1Portc.2 = 1

Waitms 5Portc.2 = 0Waitms 5Next IGoto Inicio