need to change something in the code;
need to change something in the code;
need to change something in the code which i have , from 16f628a to 16f88 or 16f819.
we need more information... the existing code and PIC... and the target PIC #
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I have the code for the pic16f628a and work.Originally Posted by mister_e
I want to replace the 16f628a with 16f88 or 16f819
Code:DEFINE LCD_DREG PORTB 'Selection of the port B DEFINE LCD_DBIT 0 'Selection one RB0 with RB3 DEFINE LCD_RSREG PORTA 'RS on port A DEFINE LCD_RSBIT 2 'RS on RA2 DEFINE LCD_EREG PORTA 'E on port A DEFINE LCD_EBIT 3 'E on RA3 DEFINE LCD_BITS 4 'Mode 4 bits DEFINE LCD_LINES 2 '2 lines DEFINE I2C_SCLOUT 1 PAUSE 500 ' ** DEFINITION OF THE ENTREES - EXITS ' Exits I2C SCL var PORTA.1 ' SCL on RB1 (pine 18) SDA var PORTA.0 ' SDA on RB0 (pin 17) ' Boutons UP var PORTB.6 'increase the frequency (on RB6) DOWN var PORTB.7 'decrease the frequency (on RB7) CH_PAS var PORTB.5 'Change the step of synth (on RB5) Input UP 'Up and Down are entries Input DOWN Input CH_PAS
Add the following to the top of the program:
CMCON=%00000111 ' Disable Comparators
ANSEL=%00000000 ' force RB6 and RB7 digital (16F88 specific)
Already have : CMCON = 7 ' PortA = digital I/OOriginally Posted by DynamoBen
Bookmarks