Author |
Message |
Topic: Max EEPROM erase cycles using write/read_eeprom() |
caddy
Replies: 7
Views: 11969
|
Forum: General CCS C Discussion Posted: Sun Aug 19, 2007 6:01 am Subject: Max EEPROM erase cycles using write/read_eeprom() |
OK. First thing, for reasonable reliability, always use the 'minimum' figure in the data sheet. Otherwise you will get the odd chip that gives problems well before the 'typical' figure.
It is 'erase ... |
Topic: Max EEPROM erase cycles using write/read_eeprom() |
caddy
Replies: 7
Views: 11969
|
Forum: General CCS C Discussion Posted: Sat Aug 18, 2007 11:48 pm Subject: Max EEPROM erase cycles using write/read_eeprom() |
Hi
I know for most PIC 18s that the maximum number of writes to the EEPROM is around 1,000,000.
What I am wondering is, is this per byte? Ie, if there are 1024 bytes in the EEPROM, can I write e ... |
Topic: Possible to not specify xmit pin in #USE RS232 statement? |
caddy
Replies: 7
Views: 8874
|
Forum: General CCS C Discussion Posted: Wed Aug 01, 2007 11:03 pm Subject: Possible to not specify xmit pin in #USE RS232 statement? |
I tried it on an 18F452 with PCH vs. 4.047, on a PicDem2-Plus board and
it didn't work. The data sheet shows the pin drivers for the UART
are controlled by SPEN, not TXEN. (There's a block diagr ... |
Topic: Possible to not specify xmit pin in #USE RS232 statement? |
caddy
Replies: 7
Views: 8874
|
Forum: General CCS C Discussion Posted: Wed Aug 01, 2007 4:25 pm Subject: Possible to not specify xmit pin in #USE RS232 statement? |
If you don't specify C6 for Xmit the compiler will use a software UART. When you say you cannot use the PIN_C6 as an output pin, do you mean the compiler generates an error, or the pin is stuck high ... |
Topic: Possible to not specify xmit pin in #USE RS232 statement? |
caddy
Replies: 7
Views: 8874
|
Forum: General CCS C Discussion Posted: Wed Aug 01, 2007 4:07 am Subject: Possible to not specify xmit pin in #USE RS232 statement? |
Alas... I had sent the previous message while I was at work so unable to test it until now.
Unfortunately, when I disable the xmit pin, I still cannot use the PIN_C6 as an output pin.
The chip i ... |
Topic: Possible to not specify xmit pin in #USE RS232 statement? |
caddy
Replies: 7
Views: 8874
|
Forum: General CCS C Discussion Posted: Tue Jul 31, 2007 4:53 pm Subject: Possible to not specify xmit pin in #USE RS232 statement? |
Thank you!!!!! I didn't realise I could manually turn of the xmit. You have saved my day! |
Topic: Possible to not specify xmit pin in #USE RS232 statement? |
caddy
Replies: 7
Views: 8874
|
Forum: General CCS C Discussion Posted: Tue Jul 31, 2007 7:19 am Subject: Possible to not specify xmit pin in #USE RS232 statement? |
Hi
I am using a hardware UART for receiving data. The UART does not need to send data. So technically I only need the RCV pin (PIN_C7), not the XMIT pin (PIN_C6).
The spec I'm working with requi ... |
Topic: Baud Rate Equations in UART |
caddy
Replies: 6
Views: 10228
|
Forum: General CCS C Discussion Posted: Thu Jul 26, 2007 5:02 pm Subject: Baud Rate Equations in UART |
Thank you guys, these posts really educated me!
Could someone just explain, how do you set the prescaler to /16 vs /64 within CCS?
Thanks |
Topic: Baud Rate Equations in UART |
caddy
Replies: 6
Views: 10228
|
Forum: General CCS C Discussion Posted: Wed Jul 25, 2007 11:24 pm Subject: Baud Rate Equations in UART |
Hi
I'm trying to calculate the minimum Fosc speed for an application.
The application is MIDI. It transfers at 31250 bps. Each midi 'symbol' consists of 8 bits of data with a start and stop bit ... |
Topic: Problem with #INT_EXT for UART |
caddy
Replies: 2
Views: 4248
|
Forum: General CCS C Discussion Posted: Tue Jul 24, 2007 7:48 pm Subject: Problem with #INT_EXT for UART |
Thank you, ttelhmah. This is the reassurance that I needed.
For some reason I thought that I couldnt use the UART for both bootloader and other comms.. but now it seems ok - thanks! |
Topic: Problem with #INT_EXT for UART |
caddy
Replies: 2
Views: 4248
|
Forum: General CCS C Discussion Posted: Fri Jul 20, 2007 10:09 pm Subject: Problem with #INT_EXT for UART |
Hi
I am using a bootloader that requires the hardware UART to function. So I need to use a software UART for communications. I do this with INT_EXT.
#use rs232(baud=31250, rcv=PIN_B0, PARI ... |
Topic: ADC port contradictions |
caddy
Replies: 6
Views: 7698
|
Forum: General CCS C Discussion Posted: Mon Jun 25, 2007 6:19 am Subject: ADC port contradictions |
why not just use A0 & A1 as Analog as the others as digital and you don't have to switch from analog to digital and back again?
The problem is I am using a PCB that has already been implemented b ... |
Topic: ADC port contradictions |
caddy
Replies: 6
Views: 7698
|
Forum: General CCS C Discussion Posted: Sun Jun 24, 2007 4:50 pm Subject: ADC port contradictions |
Well, they wouldn't need to be analog and digital simultaneously. The code I'm thinking of would be something like:
setup_adc_ports(ALL_ANALOG);
delay_ms(X); //allow the ADC to s ... |
Topic: ADC port contradictions |
caddy
Replies: 6
Views: 7698
|
Forum: General CCS C Discussion Posted: Sun Jun 24, 2007 12:54 am Subject: ADC port contradictions |
Hi
I'm using an 18F2525 with 12 ADC ports. In the datasheet it says:
"each port pin associated with the A/D converter can be configured as an analog input, or as a digital I/O."
How ... |
|