Author |
Message |
Topic: Bootloading and UART |
bsodmike
Replies: 2
Views: 4271
|
Forum: General CCS C Discussion Posted: Sun Oct 29, 2006 7:34 pm Subject: Bootloading and UART |
I was going thru some past posts regarding the CCS bootloader as well as the SFE one. It seems that both release control over the UART and pass it over to the application (which makes a lot of sense) ... |
Topic: Bootloading and UART |
bsodmike
Replies: 2
Views: 4271
|
Forum: General CCS C Discussion Posted: Sun Oct 29, 2006 2:14 pm Subject: Bootloading and UART |
Hi,
Quick question. I'm actually planning on using the SFE bootloader and screamer for uploading the hex file (sparkfun.com).
What I want to know is once the bootloader checks for 'new firmwa ... |
Topic: i2c communication with external eeprom |
bsodmike
Replies: 14
Views: 17374
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2006 7:05 am Subject: i2c communication with external eeprom |
Small tip, include the recieve pin in the use rs232 def, to enable UART,
//For 16F877A, use correct pins; check datasheet!
#use rs232(baud=4800, parity=N, bits=8, xmit=PIN_C6, rcv=PIN_C7, ERRORS ... |
Topic: 16f628A and a LED Display Driver |
bsodmike
Replies: 2
Views: 5818
|
Forum: General CCS C Discussion Posted: Tue Oct 17, 2006 1:34 am Subject: 16f628A and a LED Display Driver |
Rather than using the traditional driver, which only (afaik) allows BCD digits + dp control, you can multiplex the lines by hand, and all this means is that you'll have,
a,b,c,d,e,f,g,dp
driver line ... |
Topic: Latest CCS Manual |
bsodmike
Replies: 1
Views: 3861
|
Forum: General CCS C Discussion Posted: Mon Oct 16, 2006 12:27 am Subject: Latest CCS Manual |
Hi,
Just to let you know that I've checked this with Apple Preview and Acrobat Professional - the hyperlinks are broken including from the TOC.
A fix would be nice
Cheers,
Mike |
Topic: #ifdef, what device? |
bsodmike
Replies: 3
Views: 7565
|
Forum: General CCS C Discussion Posted: Sun Oct 15, 2006 11:32 am Subject: #ifdef, what device? |
Thanks, the getenv() method seems the cleanest, cheers!
Mike |
Topic: #ifdef, what device? |
bsodmike
Replies: 3
Views: 7565
|
Forum: General CCS C Discussion Posted: Sun Oct 15, 2006 1:16 am Subject: #ifdef, what device? |
Hi,
I want to have my code load different (well obv) settings based on what PIC has been used when compiled, i.e. 16f877A or something else.
What's the pre-processor arg to check for this?
so ... |
Topic: RC5 Code to ascii |
bsodmike
Replies: 6
Views: 15094
|
Forum: General CCS C Discussion Posted: Sat Oct 14, 2006 6:30 am Subject: RC5 Code to ascii |
I don't know about others around here, but I find that posts of this sort are best filed under the "Do my homework for me" forum :S |
Topic: RS-232 communication problem. Please help ! |
bsodmike
Replies: 8
Views: 9473
|
Forum: General CCS C Discussion Posted: Fri Oct 13, 2006 5:40 am Subject: RS-232 communication problem. Please help ! |
#use rs232(baud=57600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)
#use rs232(baud=57600,parity=N,xmit=PIN_G1,rcv=PIN_G2,bits=8)
Wouldn't you be better off defining a stream for each o ... |
Topic: Odd Question... |
bsodmike
Replies: 0
Views: 3149
|
Forum: General CCS C Discussion Posted: Thu Oct 12, 2006 2:01 am Subject: Odd Question... |
Hi,
Not sure how to classify this but here it is anyways. The CC5X compiler allows one to define data in binary as follows,
0b.0000.0000
but CCS takes it only as
0b00000000
Having the ... |
Topic: Help needed for networking microcontrollers! |
bsodmike
Replies: 3
Views: 4285
|
Forum: General CCS C Discussion Posted: Tue Oct 10, 2006 7:51 am Subject: Help needed for networking microcontrollers! |
Simplest would be to have an i2c Master connected to the PC via serial. The other 10 MCUs are i2c slaves and the master requests data from them or works on interrupt basis and passes the data receive ... |
Topic: I need to "talk" to HD44780 commun LCD by 2 wires |
bsodmike
Replies: 8
Views: 8974
|
Forum: General CCS C Discussion Posted: Tue Oct 10, 2006 7:38 am Subject: I need to "talk" to HD44780 commun LCD by 2 wires |
I have got two of their serial backpacks, which have been coded via the CC5X compiler.
The latest version (iirc v2.5) is ok, but doesn't boot up properly every single time. I plan on porting it ov ... |
Topic: Help with Sleep and Waking up... |
bsodmike
Replies: 8
Views: 13348
|
Forum: General CCS C Discussion Posted: Mon Oct 09, 2006 1:28 pm Subject: Help with Sleep and Waking up... |
I believe that a reset would wake it up from sleep, so couldn't you have...
main(){
do_func();
sleep;
while(1); //should never reach this point.
} |
Topic: I need to "talk" to HD44780 commun LCD by 2 wires |
bsodmike
Replies: 8
Views: 8974
|
Forum: General CCS C Discussion Posted: Sun Oct 08, 2006 9:57 am Subject: I need to "talk" to HD44780 commun LCD by 2 wires |
There's some schematics for the 3-wire method if you search google (data, clock, enable) using a serial-in parallel-out shift register, and you can tie this down to a 2-wire by shifting in 9bits, and ... |
Topic: Console output |
bsodmike
Replies: 5
Views: 10541
|
Forum: General CCS C Discussion Posted: Sat Oct 07, 2006 8:02 pm Subject: Console output |
Slight improvement,
// reading a text file
#include <iostream>
#include <fstream>
#include <string>
using namespace std ... |
|