Search found 11 matches

by jheiv
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: 6770

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...
by jheiv
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: 42796

I did as you said... and added the following lines to my code after my initial TRISC = 0x00...

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
by jheiv
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: 42796

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...
by jheiv
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: 42796

I just swapped out the LCD display with another LCD-2041 -- no luck.
by jheiv
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: 42796

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
by jheiv
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: 42796

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...
by jheiv
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: 42796

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...
by jheiv
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: 10112

The scope reads anywhere from ~81kHz to ~89kHz and its full 5.04V pk-pk... even pauses of 1 sec are ignored.
by jheiv
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: 10112

This works on a 4 MHz clock-- "Jim" -- but on a 20MHz clock I get accented o's... '**************************************************************** '* Name : UNTITLED.BAS * '* Author : J.EDWARDS * '* Date : 7/24/2006 * '* Version : 1.0 * '* Notes : * '* : * '*******************************...
by jheiv
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: 10112

'**************************************************************** '* Name : UNTITLED.BAS * '* Author : J.EDWARDS * '* Date : 7/24/2006 * '* Version : 1.0 * '* Notes : * '* : * '**************************************************************** CLEAR @ device PIC16F876A, hs_osc, wdt_off, pwrt_off, bod...
by jheiv
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: 10112

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...