Author |
Message |
Topic: Timer1 Works but Comparator1 Doesn't when debugging. |
xlh1460
Replies: 6
Views: 8728
|
Forum: General CCS C Discussion Posted: Tue Jan 11, 2011 4:28 pm Subject: Timer1 Works but Comparator1 Doesn't when debugging. |
What I was suggesting was buffering the TIOSO signal, but stopping using the TIOSI signal. As you have found, the latter, is _sensitive_. Any load you apply here loads the crystal, and will make your ... |
Topic: Timer1 Works but Comparator1 Doesn't when debugging. |
xlh1460
Replies: 6
Views: 8728
|
Forum: General CCS C Discussion Posted: Tue Jan 11, 2011 11:32 am Subject: Timer1 Works but Comparator1 Doesn't when debugging. |
I just checked the TOSO and T1OSI pins with a scope.
Probing T1OSI stops the oscillator from running and the output on T1OSO is not a TTL signal.
Am I missing something?
Thanks again. |
Topic: Timer1 Works but Comparator1 Doesn't when debugging. |
xlh1460
Replies: 6
Views: 8728
|
Forum: General CCS C Discussion Posted: Tue Jan 11, 2011 10:45 am Subject: Timer1 Works but Comparator1 Doesn't when debugging. |
As a separate comment though, what is the 'point' of what is being done?.
You already have a TTL clock output, on the timer, driving the crystal. If you want to buffer this with the comparator, or po ... |
Topic: Timer1 Works but Comparator1 Doesn't when debugging. |
xlh1460
Replies: 6
Views: 8728
|
Forum: General CCS C Discussion Posted: Tue Jan 11, 2011 12:11 am Subject: Timer1 Works but Comparator1 Doesn't when debugging. |
MPLAB 8.63, PICkit 3 Debugger, Compiler 4.108.
Program Code:
#include <16f886.h>
// 4 MHz internal clock, No watchdog timer, MCLR pin used as I/O, No internal pullup resistors
#fuse ... |
Topic: I2C Slave: Detecting stop bit from master-transmitter |
xlh1460
Replies: 2
Views: 4384
|
Forum: General CCS C Discussion Posted: Thu Dec 30, 2010 4:19 pm Subject: I2C Slave: Detecting stop bit from master-transmitter |
I was thinking more along the lines of solving this just using the MSSP module.
I have made some progress but I am starting to think your approach may end up being simpler.
Thanks. |
Topic: I2C Slave: Detecting stop bit from master-transmitter |
xlh1460
Replies: 2
Views: 4384
|
Forum: General CCS C Discussion Posted: Thu Dec 30, 2010 2:37 pm Subject: I2C Slave: Detecting stop bit from master-transmitter |
I have a master that is transmitting a variable length sequence of bytes to a slave.
I am wondering if there is any way for the slave to detect when it has received the last byte of the sequence.
... |
Topic: Problem with RS232 Baud Rate on PIC18F4620 on Picdem Z clone |
xlh1460
Replies: 5
Views: 7170
|
Forum: General CCS C Discussion Posted: Thu Sep 23, 2010 8:44 pm Subject: Problem with RS232 Baud Rate on PIC18F4620 on Picdem Z clone |
INTRC_IO did the trick, the program is using the correct Baud rate.
Time to check the external oscillator I guess.
Thanks again. |
Topic: Problem with RS232 Baud Rate on PIC18F4620 on Picdem Z clone |
xlh1460
Replies: 5
Views: 7170
|
Forum: General CCS C Discussion Posted: Thu Sep 23, 2010 8:39 pm Subject: Problem with RS232 Baud Rate on PIC18F4620 on Picdem Z clone |
The #include and the printf don't match.
Good eye.
I modified a canned program for my chip and didn't both with the printf.
But anyway, remove the HS fuse and change it to INTRC_IO a ... |
Topic: Problem with RS232 Baud Rate on PIC18F4620 on Picdem Z clone |
xlh1460
Replies: 5
Views: 7170
|
Forum: General CCS C Discussion Posted: Thu Sep 23, 2010 7:11 pm Subject: Problem with RS232 Baud Rate on PIC18F4620 on Picdem Z clone |
No, I built it myself using the schematic in the PicdemZ User Guide. |
Topic: Problem with RS232 Baud Rate on PIC18F4620 on Picdem Z clone |
xlh1460
Replies: 5
Views: 7170
|
Forum: General CCS C Discussion Posted: Thu Sep 23, 2010 6:29 pm Subject: Problem with RS232 Baud Rate on PIC18F4620 on Picdem Z clone |
I have programmed the following into the chip:
#include <18F4620.H>
#fuses HS, NOWDT
// Enable delay functions with 4 MHz clock
#use delay(clock=4000000)
#use rs232(uart1, ... |
|