I have a code for pic16f84a (frequency meter) that work with the hardware below and i want to change for 16f88.
But that not work.
Code:'*************************** HARDWARE *********************************** ' _____________ ' -| RA2 \/ RA1 |- LCD 04 RS ' controle mesure -| RA3 RA0 |- LCD 06 E ' entree mesure -| RA4 OSC1 |- 4 Mhz ' + 5 Volts -| MCLR OSC2 |- 4 MHz ' MASSE -| GND VCC |- + 5 Volts ' -| RB0 RB7 |- LCD 14 DATA ' PLUS BOUTON -| RB1 RB6 |- LCD 13 DATA ' MOINS BOUTON -| RB2 RB5 |- LCD 12 DATA ' MENU BOUTON -| RB3 RB4 |- LCD 11 DATA 'I have this but not work CMCON = 7 'PortA = digital I/O ANSEL = %00000100 'Will set RA2 as analog and all others as digital ADCON0 = %11100001 'Configure and turn on A/D Module ADCON1 = %00000010 'Set PORTA analog and RIGHT justify result
Bookmarks