Advertisement
Guest User

asdasdasd

a guest
May 7th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $sim                                                        ''do symulatora
  2. $crystal = 16000000
  3. $hwstack = 40
  4. $swstack = 16
  5. $framesize = 32
  6. $regfile = "m32def.dat"
  7.  
  8. Config Lcdpin = Pin , Db4 = Porta.4 , Db5 = Porta.5 , Db6 = Porta.6 , Db7 = Porta.7 , E = Portc.7 , Rs = Portc.6
  9.  
  10. 'configuracja poboru napiecia reference moze nie byc potrzebne
  11. Config Adc = Single , Prescaler = Auto , Reference = Internal
  12.  
  13. 'Now give power to the chip
  14. Start Adc                                                   ' NOT required since it will start automatic
  15. Dim W As Word , Channel As Byte
  16. Channel = 0
  17. W = Getadc(channel)
  18.  
  19. 'deklaracja funkcji odpowiednich za wybor z niezmiennym parametrem dokonanego pomiaru
  20. Declare Function Auto(byval V As Double) As Double
  21. Declare Function Recznie(byval V As Double) As Double
  22. Config Lcd = 16x2
  23.  
  24. Cls
  25. Lcd "Wybierz opcje"
  26. 'Lcd "Napiecie " ; W
  27. Wait 2
  28. Lowerline
  29. Lcd "1 Auto,2 Recznie"
  30. Wait 2
  31.  
  32.  
  33.  
  34. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement