Search found 11 matches
- Tue Sep 12, 2006 12:51 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: LCD2041 Blue LCD Bargraph Problems
- Replies: 4
- Views: 7065
LCD2041 Blue LCD Bargraph Problems
I have to LCD2041 both HW rev2 -- the black on green one displays a bargraph fine but the blue one displays the partial squares but then jumps to an inverted "P" character when the box should be full. Since it works perfectly on the green LCD i won't include my code... but is there any way...
- Mon Sep 11, 2006 12:27 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: i2c with PICs MSSP and Hi-Tech PIC C
- Replies: 13
- Views: 48931
I did as you said... and added the following lines to my code after my initial TRISC = 0x00...
It works great! Thanks again for your time. If anyone is needs code that uses the hardware MSSP peripheral on a PIC this code works now!
Thanks again.
-Jim
Code: Select all
TRISC3 = 1;
TRISC4 = 1;
It works great! Thanks again for your time. If anyone is needs code that uses the hardware MSSP peripheral on a PIC this code works now!
Thanks again.
-Jim
- Mon Sep 11, 2006 10:01 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: i2c with PICs MSSP and Hi-Tech PIC C
- Replies: 13
- Views: 48931
Both LCD2041 LCDs I'm using are PCB Rev 2.0. If I don't specify the address, it's not specified anywhere else in the program... I tried this program just now... still nothing. #include <htc.h> void delay(int); void init(void); void i2c_init(void); void i2c_start(void); void i2c_write(char); void i2c...
- Mon Sep 11, 2006 9:05 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: i2c with PICs MSSP and Hi-Tech PIC C
- Replies: 13
- Views: 48931
- Mon Sep 11, 2006 7:31 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: i2c with PICs MSSP and Hi-Tech PIC C
- Replies: 13
- Views: 48931
Even when I insert a pause between send commands -- like this: i2c_start(); delay(1); i2c_write(0x50); delay(1); i2c_write(0xFE); delay(1); i2c_write(0x58); delay(1); i2c_stop(); delay(1); The scope still shows the half levels, with a spacing with both lines low of about 6-8x the single-byte duration
- Mon Sep 11, 2006 7:02 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: i2c with PICs MSSP and Hi-Tech PIC C
- Replies: 13
- Views: 48931
It looks like all that did was change the clock frequency to around 25kHz and clear up the 'half-level' that was present on the clock line. But not it looks like it connects a few bytes on the clock line, so instead of being 9 distinct cycles, its something like 27 then an extended high on the clock...
- Fri Sep 08, 2006 2:25 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: i2c with PICs MSSP and Hi-Tech PIC C
- Replies: 13
- Views: 48931
i2c with PICs MSSP and Hi-Tech PIC C
#include <htc.h> void delay(int); void init(void); void i2c_init(void); void i2c_start(void); void i2c_write(char); void i2c_stop(void); void i2c_wait(void); void main(void) { delay(600); init(); i2c_init(); SSPIF = 0; //CLEAR INTERRUPT i2c_start(); i2c_write(0x50); //Load LCD Address i2c_write(0xF...
- Mon Jul 24, 2006 12:26 pm
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: LCD2041 with PIC16F876A and I2C (PicBasic Pro)
- Replies: 7
- Views: 10219
- Mon Jul 24, 2006 11:45 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: LCD2041 with PIC16F876A and I2C (PicBasic Pro)
- Replies: 7
- Views: 10219
- Mon Jul 24, 2006 11:23 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: LCD2041 with PIC16F876A and I2C (PicBasic Pro)
- Replies: 7
- Views: 10219
'**************************************************************** '* Name : UNTITLED.BAS * '* Author : J.EDWARDS * '* Date : 7/24/2006 * '* Version : 1.0 * '* Notes : * '* : * '**************************************************************** CLEAR @ device PIC16F876A, hs_osc, wdt_off, pwrt_off, bod...
- Mon Jul 24, 2006 10:00 am
- Forum: LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT
- Topic: LCD2041 with PIC16F876A and I2C (PicBasic Pro)
- Replies: 7
- Views: 10219
LCD2041 with PIC16F876A and I2C (PicBasic Pro)
I had a LCD running on a PIC16F876A with no problem when I used a 4MHz RC oscillator-- I needed a faster and more precise clock and switched to a 20MHz clock. The LCD no longer works with the 20MHz clock. I mean, it reads characters but nothing like what I input to it-- it seems to skip three out of...