kasamiko
Member
Hi,
Is it possible to use the program intended for PIC16F628 to PIC16F84? If not what should I change?
If this is the code for PIC16F628:
is this correct for 16F84?
How about this:
How should I do it on 16F84A?
Thanks
Is it possible to use the program intended for PIC16F628 to PIC16F84? If not what should I change?
If this is the code for PIC16F628:
DEVICE 16F628 ' We are using a PIC16F628 (18PIN SMD)
DECLARE XTAL = 20 ' And a 20MHz crystal
CONFIG HS_OSC , WDT_OFF , PWRTE_ON , BODEN_OFF , LVP_OFF , CP_OFF , MCLRE_OFF
is this correct for 16F84?
DEVICE 16F84A ' We are using a PIC16F84 (18PIN)
DECLARE XTAL = 4 ' And a 4MHz crystal
CONFIG XT_OSC , WDT_OFF , PWRTE_ON , CP_OFF , MCLRE_OFF
How about this:
DECLARE HSERIAL_BAUD = 9600 ' Set baud rate to 9600
DECLARE HSERIAL_RCSTA = %10010000 ' Enable serial port and continuous receive
DECLARE HSERIAL_TXSTA = %00100100 ' Enable transmit and asynchronous mode
DECLARE HSERIAL_CLEAR = ON ' Enable Error clearing on received characters
How should I do it on 16F84A?
Thanks