Author |
Message |
Topic: EEPROM and 18f27k42 write and read error |
srikala
Replies: 12
Views: 21679
|
Forum: General CCS C Discussion Posted: Thu Apr 02, 2020 11:59 pm Subject: EEPROM and 18f27k42 write and read error |
hi, PCM_Programmer
sry for delay response its 5.076. |
Topic: EEPROM and 18f27k42 write and read error |
srikala
Replies: 12
Views: 21679
|
Forum: General CCS C Discussion Posted: Sun Mar 29, 2020 5:58 am Subject: EEPROM and 18f27k42 write and read error |
Thank you Ttelmah.
#use i2c(MASTER, SLOW, SCL=PIN_C1, SDA=PIN_C2, FORCE_SW)
It worked. It's issue with my #use I2C usage.
Now my EEPROM code also works. |
Topic: EEPROM and 18f27k42 write and read error |
srikala
Replies: 12
Views: 21679
|
Forum: General CCS C Discussion Posted: Sun Mar 29, 2020 1:32 am Subject: EEPROM and 18f27k42 write and read error |
changed 4.7K to 3.3K on SCL and SDA lines, didn't get the address with above I2C scanner code. checked with two different boards.
when replaced #use i2c(Master,Slow,I2C1,FORCE_SW)
with #us ... |
Topic: EEPROM and 18f27k42 write and read error |
srikala
Replies: 12
Views: 21679
|
Forum: General CCS C Discussion Posted: Sat Mar 28, 2020 8:12 am Subject: EEPROM and 18f27k42 write and read error |
I run the below code and didn't find the address, is the program bug free ?
#include <18f27k42.h>
#fuses HS,WDT,NOPROTECT,BROWNOUT
#use delay(clock=20000000, ... |
Topic: EEPROM and 18f27k42 write and read error |
srikala
Replies: 12
Views: 21679
|
Forum: General CCS C Discussion Posted: Sat Mar 28, 2020 7:30 am Subject: EEPROM and 18f27k42 write and read error |
Hi, Ttelmah
The 24lC256 PIN No's 1,2,3 are short with Pin 4 (GND/VSS) i.e A0, A1 & A2 are pulled low.
Pin No. 7, i.e WP pin, is also grounded.
temtronic,
Pin no.'s 5 & 6 i.e SCL a ... |
Topic: EEPROM and 18f27k42 write and read error |
srikala
Replies: 12
Views: 21679
|
Forum: General CCS C Discussion Posted: Sat Mar 28, 2020 4:18 am Subject: EEPROM and 18f27k42 write and read error |
Need help on I2c EEPROM (24lc256) and 18f27k42, code gets hanged at "write_ext_eeprom()" and if commented the write function, the value read thru read_ext_eeprom() is default 255. I tried al ... |
Topic: PIC18F27k42 UART2, PIN_A5 and PIN_A4 cannot assign error |
srikala
Replies: 5
Views: 13972
|
Forum: General CCS C Discussion Posted: Thu Mar 26, 2020 1:13 am Subject: PIC18F27k42 UART2, PIN_A5 and PIN_A4 cannot assign error |
Thank you Ttelmah,
I changed my hardware to portc , pin_c5 and pin_c0 and tried the below code, reference from example files.
Could see junk data on PC termina (Tera Term) continuously, sent da ... |
Topic: PIC18F27k42 UART2, PIN_A5 and PIN_A4 cannot assign error |
srikala
Replies: 5
Views: 13972
|
Forum: General CCS C Discussion Posted: Mon Mar 23, 2020 11:17 am Subject: PIC18F27k42 UART2, PIN_A5 and PIN_A4 cannot assign error |
The following is error message when compiled:
Invalid Pre-Processor directive Invalid Pin: PIN_A5 can not be assigned to U2RX.
Invalid Pre-Processor directive Invalid Pin: PIN_A4 can not be as ... |
Topic: PIC18F27k42 UART2, PIN_A5 and PIN_A4 cannot assign error |
srikala
Replies: 5
Views: 13972
|
Forum: General CCS C Discussion Posted: Mon Mar 23, 2020 11:11 am Subject: PIC18F27k42 UART2, PIN_A5 and PIN_A4 cannot assign error |
In below code pin selection assigned is error when compiled, for pin_a5 and pin_a4, need help what might be wrong.
#include <18f27k42.h>
#fuses HS,WDT,NOPROTECT,BROWNOUT ... |
|