Nov 30, 2012 #41 pnjbtr Full Member level 5 Joined Feb 11, 2008 Messages 255 Helped 99 Reputation 198 Reaction score 89 Trophy points 1,318 Activity points 2,815 Try this code. You have to make TRISA = 0b00000011; Click to expand... Which version of micro c you are using? I try with version 5.30 and build,but no effect of adc on lcd. Attachments 3rd.rar 61.5 KB · Views: 65
Try this code. You have to make TRISA = 0b00000011; Click to expand... Which version of micro c you are using? I try with version 5.30 and build,but no effect of adc on lcd.
Nov 30, 2012 #42 I internetuser2k12 Banned Joined Jul 25, 2012 Messages 1,192 Helped 171 Reputation 342 Reaction score 162 Trophy points 1,343 Activity points 0 I am using mikroC Pro 5.60 The problem was with your Clock frequency settings in Proteus and ADCON1 settings. You has chosen to use Vref+ and Vref- If you want your code to work. Connect vref+ pin to 5v and Vref- pin to Ground and try, or you can use my code. I have not used Vref pins. Try to see the errors and warning messages proteus give. Attachments 3rd.rar 68.2 KB · Views: 66 adc_lcd.jpg 387.3 KB · Views: 77 Last edited: Nov 30, 2012
I am using mikroC Pro 5.60 The problem was with your Clock frequency settings in Proteus and ADCON1 settings. You has chosen to use Vref+ and Vref- If you want your code to work. Connect vref+ pin to 5v and Vref- pin to Ground and try, or you can use my code. I have not used Vref pins. Try to see the errors and warning messages proteus give.
Nov 30, 2012 #43 pnjbtr Full Member level 5 Joined Feb 11, 2008 Messages 255 Helped 99 Reputation 198 Reaction score 89 Trophy points 1,318 Activity points 2,815 I am using mikroC Pro 5.60 Click to expand... What do think problem is due to version mismatch? i attached whole project in previous thread. Can you build c file and send hex.
I am using mikroC Pro 5.60 Click to expand... What do think problem is due to version mismatch? i attached whole project in previous thread. Can you build c file and send hex.
Nov 30, 2012 #44 I internetuser2k12 Banned Joined Jul 25, 2012 Messages 1,192 Helped 171 Reputation 342 Reaction score 162 Trophy points 1,343 Activity points 0 I have replied in my last post.
Nov 30, 2012 #45 pnjbtr Full Member level 5 Joined Feb 11, 2008 Messages 255 Helped 99 Reputation 198 Reaction score 89 Trophy points 1,318 Activity points 2,815 can we write this code for pic16f72? PIC16F72 have 8 bit adc module and pic16f877a is with 10bit adc module.
can we write this code for pic16f72? PIC16F72 have 8 bit adc module and pic16f877a is with 10bit adc module.