Hi guys. After testing to making sure that things work, we finally came up with the code for C18 that successfully sends data to the LCD via I2C. The code is listed below:
#include "p18f252.h"
#include "i2c.h"
#include <stdlib.h>
#pragma config WDT = OFF
#pragma config OSC = HS
unsigned char ...
Search found 12 matches
- Fri Jun 15, 2007 9:42 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Thu Jun 14, 2007 12:17 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
Hi Raquel. My friend changed the codes a bit, and right now the LCD is responding with ACKs and we are sending data over. However, they are not displayed on the LCD.
Also, instead of 0x50, my friend used 0xA0, which is 0x50 shifted by one bit and the LCD ACKs. He also ued idleI2C() to produce the ...
Also, instead of 0x50, my friend used 0xA0, which is 0x50 shifted by one bit and the LCD ACKs. He also ued idleI2C() to produce the ...
- Wed Jun 13, 2007 3:24 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Tue Jun 12, 2007 3:41 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Tue Jun 12, 2007 3:23 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
Hi. I just got the scope captures and here they are now. For these scope captures, we used putcI2C() instead of putsI2C(). PutcI2C sends one char at a time, while putsI2C sends a whole string at a time. However, putsI2C doesn't have line idle high at the end but putcI2C does. Below is the new scope ...
- Tue Jun 12, 2007 2:17 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Tue Jun 12, 2007 1:00 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Tue Jun 12, 2007 12:07 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Tue Jun 12, 2007 11:07 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Tue Jun 12, 2007 10:28 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Mon Jun 11, 2007 5:57 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
- Mon Jun 11, 2007 3:49 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: Issues with I2C for PIC18F252 and GLK12232-25-SM
- Replies: 23
- Views: 19348
Issues with I2C for PIC18F252 and GLK12232-25-SM
Hi. My name is Yu-Chen. Some friends and I were trying to get the PIC18F252 to transmit data to the GLK12232-25-SM LCD via I2C. However, we are running into some trouble about the LCD not accepting input data.
The LCD is setup according to the changes indicated for PCB 1.4 of GLK12232-25-SM for the ...
The LCD is setup according to the changes indicated for PCB 1.4 of GLK12232-25-SM for the ...