Search found 30 matches

by chrispol
Fri Mar 19, 2010 11:35 am
Forum: NetBurner Software
Topic: Lcd Code
Replies: 11
Views: 6525

Re: Lcd Code

actually sim.gpt[1].port is being used as general io writing to the complete port 4 bits 1/2 byte at a time t the lcd data pins
by chrispol
Fri Mar 19, 2010 10:28 am
Forum: NetBurner Software
Topic: Lcd Code
Replies: 11
Views: 6525

Re: Lcd Code

the first 2 lines are actually defines, i just included them so you could know what pins they are on....

i saw an example somewhere where the guy was just using OSTimeDly(1) seconds

sim.gpt[1].port = h; high part of the byte
sim.gpt[1].port = l; low part of the byte
by chrispol
Fri Mar 19, 2010 7:57 am
Forum: NetBurner Software
Topic: Lcd Code
Replies: 11
Views: 6525

Re: Lcd Code

Can anyone give me a hand with this? i've put together some code but having issues.... this is on a mod5282 lcdRS J1[5] lvdE J1[6] void lcdSendCmd(char c) { int h=c/16; int l=c%16; lcdRS = 0; lcdE = 0; sim.gpt[1].port = h; lcdE = 1; OSTimeDly(1); //450ns min lcdE = 0; OSTimeDly(1); //5ms command 200...
by chrispol
Thu Mar 18, 2010 2:39 pm
Forum: NetBurner Software
Topic: Lcd Code
Replies: 11
Views: 6525

Re: Lcd Code

Ok wired up a lcd #define lcdRS J1[23] #define lcdE J1[22] #define lcdD4 J1[25] #define lcdD5 J1[24] #define lcdD6 J1[27] #define lcdD7 J1[26] been looking for docs on how to write the data lines, instead of doing it by bits, for init could send 0x2,0xc0xc,0x1,0x6 instead of setting each pin and sen...
by chrispol
Wed Mar 17, 2010 1:32 pm
Forum: NetBurner Software
Topic: External IRQ's
Replies: 5
Views: 3553

Re: External IRQ's

Ok, also sometimes while triggering interrupt 1 i get a printf for interrupt 2
by chrispol
Wed Mar 17, 2010 1:07 pm
Forum: NetBurner Software
Topic: External IRQ's
Replies: 5
Views: 3553

External IRQ's

the following works but it seems that the inteerupt does not clear i get about 50 or 60 printf statements before it stops, and if i hold the button triggering the interrupt it keeps firing and chrashes any ideas? INTERRUPT(IRQ1, 0x2100 ) { sim.eport.epfr = 0x02; iprintf("Interrupt1 \n"); }...
by chrispol
Tue Mar 16, 2010 12:40 pm
Forum: NetBurner Software
Topic: Lcd Code
Replies: 11
Views: 6525

Re: Lcd Code

I was looking around, but i am a bit confused on how to set the gpio's
by chrispol
Mon Mar 15, 2010 1:08 pm
Forum: NetBurner Software
Topic: Did you Brick your Mod Board ?
Replies: 2
Views: 2730

Re: Did you Brick your Mod Board ?

Yep but you can brick that too i have :s
by chrispol
Mon Mar 15, 2010 11:00 am
Forum: NetBurner Software
Topic: Lcd Code
Replies: 11
Views: 6525

Re: Lcd Code

QY-162A 8 bit parallel, would like to run it in 4 bit, also trying to figure out the pwm, whats the lowest frequency hardware pwm can do on the 5282?

Thanks
Chris
by chrispol
Mon Mar 08, 2010 8:49 am
Forum: NetBurner Software
Topic: Lcd Code
Replies: 11
Views: 6525

Lcd Code

Hi I'm looking to interface a 4bit lcd, to my mod5282, this is my first netburner project moving from pics, can anyone help me out?