Author |
Message |
Topic: HELP! Configure Manually IP from ex_stWebserver.c |
SimpleAsPossible
Replies: 5
Views: 7694
|
Forum: General CCS C Discussion Posted: Wed Jun 30, 2010 7:53 am Subject: Maybe something simple? |
Did you call IPAddrInit() as part of your initialization? I usually have it right before StackInit(). |
Topic: Modbus implementation |
SimpleAsPossible
Replies: 86
Views: 113311
|
Forum: General CCS C Discussion Posted: Wed Jun 30, 2010 7:46 am Subject: Other hardware options |
It looks like the issues here MIGHT have to do with the software enabling the transmitter, so a change to the hardware might help.
I have successfully used a circuit I found in a Circuit Cellar RS- ... |
Topic: OT - Who uses SPICE? What type? |
SimpleAsPossible
Replies: 7
Views: 6654
|
Forum: General CCS C Discussion Posted: Fri Feb 19, 2010 4:50 pm Subject: SIMetrix |
I use SIMetrix Intro, which is the free, limited version, for testing circuit concepts. Circuit complexity is very limited, though. It looks like $3k+ for the full version.
Like MikeW said, it ha ... |
Topic: efficient code for multiple PWM signals? |
SimpleAsPossible
Replies: 5
Views: 5708
|
Forum: General CCS C Discussion Posted: Fri Feb 19, 2010 2:44 pm Subject: Will this get you where you want to go? |
How about you use a 6400 Hz interrupt and get rid of the arrays (for speed in the interrupt service routine)?
#INT_TIMER0
void timer0( void )
{
TMR0 = 100; // or whatever you need ... |
Topic: Simple C problem - Pls take a look ! |
SimpleAsPossible
Replies: 6
Views: 4605
|
Forum: General CCS C Discussion Posted: Mon Jan 26, 2009 7:27 pm Subject: "It's a state machine" |
You said it: it's a state machine. Here's a rough summary of what I'd do in your timer ISR. Set your timer to overflow every 1 ms.
static int state = 0; // only in ISR, init to zero
state++;
... |
Topic: Using two different structs for the same data |
SimpleAsPossible
Replies: 3
Views: 5348
|
Forum: General CCS C Discussion Posted: Mon Mar 17, 2008 10:32 pm Subject: Using two different structs for the same data |
Am I understanding this correctly? You are receiving a data stream, and its elements can be in one of two known orders. Then you want to be able to conveniently access the data the way the stream sh ... |
Topic: simultaneous alarm events without clock stop |
SimpleAsPossible
Replies: 3
Views: 4998
|
Forum: General CCS C Discussion Posted: Mon Mar 17, 2008 10:00 pm Subject: Delay_ms() |
I just glanced at the code briefly (did someone mention that it's very long and complicated?). You have some delay_ms() calls that seem to be keeping your program from responding to user input.
Ha ... |
Topic: Litle help to send correct chars using the PS2 keyboard itfc |
SimpleAsPossible
Replies: 3
Views: 4746
|
Forum: General CCS C Discussion Posted: Mon Mar 17, 2008 9:41 pm Subject: Oscilloscope? |
Have you looked at your signals with a scope? The scan codes look right, according to the information I have. Maybe the clock gets skewed slightly? I had a nice theory going about strings of 1s, bu ... |
Topic: Bootload from USB key or SD/MMC card? |
SimpleAsPossible
Replies: 10
Views: 12246
|
Forum: General CCS C Discussion Posted: Mon Mar 17, 2008 9:30 pm Subject: VDIP1 module was OK with UART |
I recently hacked a VDIP1 module onto a CCS development board. It ended up working OK. I wasn't too happy about the issues related to setting the baud rate higher than the default -- I went to eithe ... |
Topic: How to do big number on LCD? |
SimpleAsPossible
Replies: 3
Views: 5745
|
Forum: General CCS C Discussion Posted: Tue Aug 14, 2007 8:34 pm Subject: Try RLE or external memory |
You might consider run-length encoding, since your data repeats a lot.
Your first table
BYTE CONST NUM_TABLE [128]= {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x03,0x07,0x0F,0x1F ... |
Topic: Undefined Identifier TMR1H |
SimpleAsPossible
Replies: 2
Views: 6738
|
Forum: General CCS C Discussion Posted: Sun Mar 25, 2007 5:55 pm Subject: Generally speaking, for stuff like this... |
Go to 41159D.pdf (for PIC18F458), go to page 47 (page 49 of the PDF file) and look at Table 4.1 Special Function Register Map, TMR1H is FCFh and TMR1L is FCEh. Add this near the top of your file:
# ... |
Topic: Software PWM |
SimpleAsPossible
Replies: 3
Views: 5873
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2007 8:03 pm Subject: Well, you asked for random thoughts |
I recently rejected a software PWM on a project. Not that my needs match yours....
Random thoughts:
For true 8 bit resolution, don't you need ( 500 Hz * 256 counts ) = 128 kHz timer ticks? Are ... |
Topic: Compile+Assembler |
SimpleAsPossible
Replies: 1
Views: 3763
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2007 7:41 pm Subject: One thought |
You could treat it like an interrupt, and save those values at the beginning of your function, then restore them before you return. |
Topic: multiple external eeproms with one pic |
SimpleAsPossible
Replies: 3
Views: 5510
|
Forum: General CCS C Discussion Posted: Sun Feb 25, 2007 7:27 pm Subject: Sample code? |
You seem to be on the right track. Take a look at EX_EXTEE.C and 2416.C. I found this function in 2416.C:
void write_ext_eeprom(long int address, BYTE data) {
while(!ext_eepr ... |
Topic: No sound for 16f876A |
SimpleAsPossible
Replies: 5
Views: 6359
|
Forum: General CCS C Discussion Posted: Sun Feb 11, 2007 12:59 pm Subject: Clarification |
The point kender is trying to make is that to make a short beep, you need to output an audible frequency for a short period of time. That is, your speaker needs to see a waveform like this:
____ ... |
|