Advertisement
Guest User

Untitled

a guest
Apr 19th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $regfile = "m8def.dat"
  2. $crystal = 8000000
  3. $hwstack = 40
  4. $swstack = 16
  5. $framesize = 32
  6.  
  7.  
  8. Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portb.3 , E = Portc.1 , Rs = Portc.0
  9. Config Adc = Single , Prescaler = Auto , Reference = Avcc
  10. Config Lcd = 16 * 2
  11. Dim Temp As Single
  12. Dim Wartosc As Integer
  13. Config Portb.2 = Output
  14.  
  15. Cls
  16. Do
  17. Cls
  18.   Wartosc = Getadc(5)
  19.   Temp = Wartosc * 5
  20.   Temp = Temp / 1024
  21.   Temp = Temp - 0.5
  22.   Temp = Temp / 0.01
  23.  
  24. Lcd Fusing(temp , "##.##")
  25. Cursor Off Noblink
  26. Wait 1
  27.  
  28.  
  29. Loop
  30. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement