Search found 7 matches
- Mon Nov 24, 2014 8:17 pm
- Forum: Tutorials
- Topic: A Simple RS232 Serial Interface
- Replies: 8
- Views: 24459
Re: A Simple RS232 Serial Interface
Oh I see, so that's how API functions work... Thank you for your reply!
- Mon Oct 13, 2014 11:07 pm
- Forum: Tutorials
- Topic: A Simple RS232 Serial Interface
- Replies: 8
- Views: 24459
Re: A Simple RS232 Serial Interface
Ok, problem with I2C and USART solved, nothing to do with bauds or registers... It was just the pin from the pic not making a good contact with the PCF8583.
Question no. 1 still's on though.
Thanks!
Question no. 1 still's on though.
Thanks!
- Mon Oct 13, 2014 3:06 am
- Forum: Tutorials
- Topic: A Simple RS232 Serial Interface
- Replies: 8
- Views: 24459
Re: A Simple RS232 Serial Interface
This was a very instructive tutorial, although I have a question, why do you set TRIS for RX an TX both as inputs? Is it because the PIC is working on slave mode? I'm working on a project now which uses I2C (your tutorial also very helpful! :D) to read time from a RTC, and then send it via serial. I...
- Tue Aug 05, 2014 8:25 pm
- Forum: Tutorials
- Topic: PS/2 Keyboard Interface
- Replies: 22
- Views: 42312
Re: PS/2 Keyboard Interface
Hi again! Thank you for your reply, I did it :D ! Shifting for two digits and all... There's only one thing, the circuit must be connected to the power source with the keyboard plugged, otherwise if the PIC is powered on first and then the keyboard is plugged it just won't do a thing. Is there anyth...
- Mon Apr 28, 2014 10:27 pm
- Forum: Tutorials
- Topic: PS/2 Keyboard Interface
- Replies: 22
- Views: 42312
Re: PS/2 Keyboard Interface
It won't recognize the T1_SOURCE_INT by any method... I've compiled the program without this statement, like this: T1CONbits.TMR1ON=1; T1CONbits.RD16=1; T1CONbits.T1CKPS1=0; T1CONbits.T1CKPS0=0; T1CONbits.TMR1CS1=1; T1CONbits.TMR1CS0=0; PIE1bits.TMR1IE=1; (Sorry I'm totally new at timers) And it won...
- Tue Apr 22, 2014 7:41 pm
- Forum: Tutorials
- Topic: PS/2 Keyboard Interface
- Replies: 22
- Views: 42312
Re: PS/2 Keyboard Interface
Yes, I'm using a P18f26j11, and I've checked the timers.h library and there are two ways of calling Opentimer1, one of them requires only one parameter and the other one requires two parameters, also there is an option for separating the configuration with "and" or with "or", but...
- Mon Apr 21, 2014 1:41 pm
- Forum: Tutorials
- Topic: PS/2 Keyboard Interface
- Replies: 22
- Views: 42312
Re: PS/2 Keyboard Interface
Thank you a lot for this great tutorial! I've tried to implement it, but when I compile it I get the following errors: Error [1105] symbol 'T1_SOURCE_INT' has not been defined Error [1203] too few arguments in function call I'm guessing this has something to do with the timers.h library, but I'm not...