Author |
Message |
Topic: SPI() |
buster22098
Replies: 11
Views: 8747
|
Forum: General CCS C Discussion Posted: Wed Sep 30, 2009 12:11 pm Subject: SPI() |
Thank you very much, this has immensely cleared up how to use spi() with ccs!
I have had some luck with using #use spi() and using xfer_spi() to send data to my VFD and will also try the other meth ... |
Topic: SPI() |
buster22098
Replies: 11
Views: 8747
|
Forum: General CCS C Discussion Posted: Wed Sep 30, 2009 8:15 am Subject: SPI() |
So, (if I read it write), they are mutually exclusive options?
Using #use spi hides a lot of the setup parameters from the user where setup_spi() doesn't.
How do you specify the data in, data ou ... |
Topic: SPI() |
buster22098
Replies: 11
Views: 8747
|
Forum: General CCS C Discussion Posted: Tue Sep 29, 2009 10:20 pm Subject: Re: SPI() |
According to this ( http://www.ccsinfo.com/content.php?page=spi ) page I can set up the SPI using the following;
#use SPI (DO = PIN_B0, DI = PIN_B1, CLK = PIN_B2, baud = 100000, BITS = 8, L ... |
Topic: SPI() |
buster22098
Replies: 11
Views: 8747
|
Forum: General CCS C Discussion Posted: Tue Sep 29, 2009 8:12 pm Subject: SPI() |
Post his SPI setup routine.
All he sent me was the above so I've sent him an e-mail. Will post the results. I've also asked hime to verify the pins on the board also |
Topic: SPI() |
buster22098
Replies: 11
Views: 8747
|
Forum: General CCS C Discussion Posted: Tue Sep 29, 2009 7:18 pm Subject: SPI() |
I have his source code and have converted it to CCS.
What I am unsure of is how to set up SPI using CCS.
void initialise_VFD(void)
{
Delay10KTCYx(256);
// Command ... |
Topic: SPI() |
buster22098
Replies: 11
Views: 8747
|
Forum: General CCS C Discussion Posted: Tue Sep 29, 2009 6:40 pm Subject: SPI() |
I am unsure of the manufacturer. It was liberated from a PACE Microtechnology set top box
It has 8 unique segments with 5x7 dots in each.
Does the VFD manufacturer matter to get it to work?
... |
Topic: HD44780 Problems |
buster22098
Replies: 4
Views: 7330
|
Forum: General CCS C Discussion Posted: Tue Sep 29, 2009 5:39 pm Subject: HD44780 Problems |
Thanks! |
Topic: SPI() |
buster22098
Replies: 11
Views: 8747
|
Forum: General CCS C Discussion Posted: Tue Sep 29, 2009 5:34 pm Subject: SPI() |
I have a VFD display and want to try to write some code for it using SPI.
I am new to SPI but understand the principle that it is (essentially) a RS232 in software but am curious as to how to set t ... |
|