Author |
Message |
Topic: function pointers |
Trampas
Replies: 5
Views: 12202
|
Forum: General CCS C Discussion Posted: Sat Nov 20, 2004 7:56 am Subject: function pointers |
I suspect that the CCS compiler is broken and you can not use pointers to functions. I know I have tried and it does not work.
Trampas |
Topic: Memory Mapping |
Trampas
Replies: 6
Views: 12357
|
Forum: General CCS C Discussion Posted: Tue Nov 16, 2004 6:40 am Subject: Memory Mapping |
ritchie,
Is your concern the portablitly of the code?
Since the CCS compiler does not have a linker, their is no other way to locate the variable other than the #locate.
What you can do is ... |
Topic: BUGS in PCWH 3.212 |
Trampas
Replies: 7
Views: 17112
|
Forum: General CCS C Discussion Posted: Sat Nov 13, 2004 9:48 am Subject: BUGS in PCWH 3.212 |
I have had the same problem with CCS. The best advice I have to switch to a real compiler, the C18 is not too bad...
Trampas |
Topic: Timing two pulses on two pins |
Trampas
Replies: 6
Views: 12107
|
Forum: General CCS C Discussion Posted: Sun Nov 07, 2004 2:50 pm Subject: Timing two pulses on two pins |
Since the orignal poster mentioned that the signal was 1Khz the interrupt latency is not an issue. But you are correct a tight polling loop is much faster, as long as you do not need to do anything el ... |
Topic: 640x480 LCD old LAPTOP |
Trampas
Replies: 7
Views: 15612
|
Forum: General CCS C Discussion Posted: Sun Nov 07, 2004 2:36 pm Subject: 640x480 LCD old LAPTOP |
The dsPIC can not do it either. Think about it...
You need to update a pixel every clock at about 18Mhz, 256 colors you would have a byte per color. Therefore to buffer the image you need 307Kbyte ... |
Topic: HS 25Mhz vs. H4 10Mhz |
Trampas
Replies: 6
Views: 13040
|
Forum: General CCS C Discussion Posted: Sun Nov 07, 2004 7:37 am Subject: HS 25Mhz vs. H4 10Mhz |
Did you all hear that? That was the light going on....
When the 18F8720 first came out I had bug where the GIE bit would magically get cleared. I called Microchip for weeks trying to figure out wh ... |
Topic: 640x480 LCD old LAPTOP |
Trampas
Replies: 7
Views: 15612
|
Forum: General CCS C Discussion Posted: Sun Nov 07, 2004 7:32 am Subject: 640x480 LCD old LAPTOP |
The way the LCD works is that it has a horz and vertical sync signal and then a pixel clock. So when the vertical signal goes high the display pixel counter moves to top of screen. When the horz sync ... |
Topic: Communication Protocol Info |
Trampas
Replies: 2
Views: 7470
|
Forum: General CCS C Discussion Posted: Sun Nov 07, 2004 7:18 am Subject: Communication Protocol Info |
I suggest the book "C Programmers Guide to Serial Communication" this book discusses a lot about serial NRZ and different file download protocols.
Trampas |
Topic: Vehicle GPS system ,code, buy |
Trampas
Replies: 3
Views: 9937
|
Forum: General CCS C Discussion Posted: Sun Nov 07, 2004 7:17 am Subject: Vehicle GPS system ,code, buy |
Go buy a GPS with serial output, then read up on the NEMA standard. Interfacing with a GPS is as simple as parsing the NEMA data.
Trampas |
Topic: BITMAP |
Trampas
Replies: 8
Views: 18396
|
Forum: General CCS C Discussion Posted: Sun Nov 07, 2004 7:16 am Subject: BITMAP |
Yes, I am sure several of us know how to do it.
1) design board with some large external memory.
2) make and populate board
3) write drivers for LCD and memory
4) load external memory with bit ... |
Topic: Timing two pulses on two pins |
Trampas
Replies: 6
Views: 12107
|
Forum: General CCS C Discussion Posted: Sat Nov 06, 2004 6:37 am Subject: Timing two pulses on two pins |
One of the easiest methods is to use the KBI (Key board interrupts) or the external interrupts.
The key board interrupts work well as you get trigger on both edges of the signal. The external int ... |
Topic: Possible bug? |
Trampas
Replies: 5
Views: 10685
|
Forum: General CCS C Discussion Posted: Fri Nov 05, 2004 6:12 am Subject: Possible bug? |
Well CCS rules one:
1) If at first your program does not run, try newer compiler.
2) If with new compiler code does not run try different optimization levels.
3) If code still does not run ... |
Topic: How to get the ASCII by RS-232 |
Trampas
Replies: 4
Views: 10960
|
Forum: General CCS C Discussion Posted: Mon Nov 01, 2004 6:32 am Subject: How to get the ASCII by RS-232 |
You are off to a good start....
First off in your design do you have a serial port for connecting PIC to PC?
main()
{
char data[20];
int i;
i=0;
... |
Topic: 24c256 |
Trampas
Replies: 7
Views: 15934
|
Forum: General CCS C Discussion Posted: Mon Nov 01, 2004 6:27 am Subject: 24c256 |
I would recommend using copper wire, it is cheap and carries electrons well.
Of course I assume this is not your question, so why don't you try again...
Trampas |
Topic: Trampas - Stern? CF,SD or EEPROM external storage |
Trampas
Replies: 1
Views: 7507
|
Forum: General CCS C Discussion Posted: Sun Oct 31, 2004 12:34 pm Subject: Trampas - Stern? CF,SD or EEPROM external storage |
Vagman,
This is Trampas Stern with the OBDII device...
I use an external Flash chip to store the code information. I also have prototypes devices with SD cards. However the only reason to use r ... |
|