MainRegistrationLogin Electro-Hobby Sunday, 17.11.2024, 15:41
  Circuits Welcome Guest | RSS

Search

Statistics

Total online: 6
Guests: 6
Users: 0

 
 Home » Control » Diode Tester on PIC 16f84
10:45
Diode Tester on PIC 16f84    
Very simple diode tester 


Test procedure We set «1» to PB0 and «0» to PB3. If diode is ok and opens, then at PA0 we have «1». If PA0 is «0», then the the diode has problemWith the program we manage what the PIC will do in each situation If PA0 is  «1», green led lights wich means that the diode is OK and if PA0 is «0» red led is lighting and the diode is problematic


Test continuous as followsWe give «0» at PB0 and «1» to PB3. If diode is OK and opensthen at PA0 is «1». If PA0 is «0», then diode has problemIf PA0 is «1», green led lights that means that diode is OK and if PA0 is «0» the red diode is lights that means the the diode is problematic.

source code in Assembler




Category: Control | Views: 1192 |
 
 
Advertising

 

Copyright MyCorp © 2024
Free web hostinguCoz