Author |
Message |
Topic: Soft-RS232 kills SPI |
Roebi
Replies: 3
Views: 5587
|
Forum: General CCS C Discussion Posted: Thu Feb 09, 2006 4:39 am Subject: More on RS232 problem: Work-around |
It is indeed a TRISC-problem . Following any call to
fprintf(dbgs,....etc
the TRISC-bits 3..5 are all ones. No supprise SPI does not work anymore. The work-around is to set TRISC prior t ... |
Topic: A simple C question.... |
Roebi
Replies: 2
Views: 4274
|
Forum: General CCS C Discussion Posted: Thu Feb 09, 2006 4:28 am Subject: The Solution-Code |
What about this:
void clear_MEMORY(void) {
int16 mem_address = 0;
do {
write_ext_eeprom(mem_address, 0);
mem_address++;
} while (mem_addres ... |
Topic: Soft-RS232 kills SPI |
Roebi
Replies: 3
Views: 5587
|
Forum: General CCS C Discussion Posted: Tue Feb 07, 2006 7:49 am Subject: Soft-RS232 kills SPI |
My application runs on a 16F76. It uses The UART as well as SPI - both are on port C. In order to debug my program I added:
#use rs232(baud=19200,parity=N,xmit=PIN_C0,rcv=PIN_C1,bits=8,DISABLE_INTS ... |
Topic: malloc on 16F76 |
Roebi
Replies: 3
Views: 6608
|
Forum: General CCS C Discussion Posted: Fri Jan 20, 2006 8:30 am Subject: The code to the malloc problem |
The program T1_Mal.c is as follows:
/*==============================================================================
System : PREMOS S/W Copyright 2006..
... |
Topic: Getting rubbish data on my hyper terminal.... |
Roebi
Replies: 13
Views: 18410
|
Forum: General CCS C Discussion Posted: Fri Jan 20, 2006 8:06 am Subject: baud rate setting |
Do you have a statement such as:
#use delay(clock=20000000)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)
somewhere in your code? The clock=number should be the frequency of ... |
Topic: malloc on 16F76 |
Roebi
Replies: 3
Views: 6608
|
Forum: General CCS C Discussion Posted: Thu Jan 19, 2006 11:27 am Subject: malloc on 16F76 |
I have a problem with malloc. My program is for the 16F76 and compiled with PCW 3.242 and then downloaded to the target with ICD-U40 (under control of the ICD Control Program V2.48) I also run and sto ... |
|