Help with PIC12LF1552

Status
Not open for further replies.

Zoxe

New Member
Hello !
I am making a Wireless Sensor Network using PIC12LF1552 and NRF24L01 but things are not going well for me.
I am trying to program PIC12LF1552 with the K128 programmer using firmware P018 , and the program is written with MikroC Pro 6.6.1
of course the k128 does not natively support the pic12lf1552 so I did some workaround by editing the CHIPINFO.cid file that comes with MICRO-PRO.
I am using the following configuration :
CHIPname=12LF1552
INCLUDE=Y
SocketImage=8pin
EraseMode=2
FlashChip=Y
PowerSequence=Vpp2Vcc
ProgramDelay=120
ProgramTries=1
OverProgram=1
CoreType=bit14_B
ROMsize=000800
EEPROMsize=00000000
FUSEblank=08A0 0C03
CPwarn=N
CALword=N
BandGap=N
ICSPonly=N
ChipID=2BC0

I have tested the programmer by programming PIC16F877A ( which is supported by the programmer natively ). and everything went ok , except when the programming process is done I get this error in MICRO-PRO :
Fuse error 0x2007
Good 0x08A0
Bad 0x39A4
and when programing the PIC12LF1552 I get this error :
Fuse error 0x2007
Good 0x08A0
Bad 0x39A4
however the PIC16f877A works just as expected .
now that I want to program PIC12LF1552 ( using the same programmer and configuration above ) , the result is interesting , since the pic acts weirdly :
the PIC12LF1552 needs to talk with the NRF24L01 using the SPI protocol .
I always get high voltage on RA3 even though programmed as input ( which is the same as MCLR , but I disabled the MCLR function in configuration word ).
the PIC12LF1552 stops at random points of the program for no apparent reason especially at SPI1_Read(0xff).
I try to read the registers inside the RF module and out them on one of the pins but I never get the expected sequence of bits (always there is a bit or two wrong ).
and I am trying to send one byte of data over the air to an other NRF24L01 but the data are never sent.
when I use PIC16F877A the data are sent .
could anyone please help ?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…