Author |
Message |
Topic: 12f675 rgb led pwm help? |
epv
Replies: 2
Views: 7783
|
Forum: General CCS C Discussion Posted: Wed Apr 09, 2008 1:00 pm Subject: 12f675 rgb led pwm help? |
Here is what you do.
Set up a fast 8 bit timer, and set it to interrupt on overflow. Now your interrupt routine will get called on every rollover of the timer. This is one "tick" of your ... |
Topic: need help with em4102.c manchester decoding |
epv
Replies: 2
Views: 4564
|
Forum: General CCS C Discussion Posted: Thu Mar 06, 2008 11:31 am Subject: need help with em4102.c manchester decoding |
According EMMarin 4102 datasheet page 4 table and your sequence:
00000111100000000110000000010110001101111110101111
it will look like:
0000 0
1111 0
0000 0
0011 0
0000 0
0010 1
1000 1
... |
Topic: Why does 0 != 0? |
epv
Replies: 2
Views: 4606
|
Forum: General CCS C Discussion Posted: Tue Mar 04, 2008 11:26 pm Subject: Why does 0 != 0? |
here's the code it generates for the comparison:
.................... a=0;
002D: BCF 21.0
.................... b=0;
002E: BCF 21.1
....................
..... ... |
Topic: Why does 0 != 0? |
epv
Replies: 2
Views: 4606
|
Forum: General CCS C Discussion Posted: Tue Mar 04, 2008 8:49 pm Subject: Why does 0 != 0? |
#include <16F627A.h>
#fuses INTRC_IO,NOWDT,NOPROTECT,NOLVP,NOBROWNOUT,PUT
#use delay(clock=4000000)
#use rs232(baud=9600,xmit=PIN_B2, rcv=PIN_B1)
void main(void) ... |
Topic: need help with em4102.c manchester decoding |
epv
Replies: 2
Views: 4564
|
Forum: General CCS C Discussion Posted: Tue Mar 04, 2008 12:47 am Subject: need help with em4102.c manchester decoding |
Hi. I'm playing with an EM4095-based RFID basestation. (for reference, it's the Parallax/Grand Design one) As a sort of challenge, I wiped the Parallax-supplied code and have been trying to get the em ... |
Topic: bitbanging the ADS7822 12 bit serial ADC |
epv
Replies: 1
Views: 32647
|
Forum: Code Library Posted: Wed Feb 27, 2008 8:12 am Subject: bitbanging the ADS7822 12 bit serial ADC |
Having puzzled out this chip's weirdness, I thought others might find it useful. Seems to work fine. Loosely based on the ads8390 example code, but the 7822 operates differently.
#define ADS7822 ... |
Topic: problem with I2C master on 16f88 |
epv
Replies: 1
Views: 4220
|
Forum: General CCS C Discussion Posted: Sat Feb 23, 2008 8:53 pm Subject: fixed... |
Well, my problem was a confluence of a number of factors. One was that the Olimex PG4 board has a pullup on SDA, but lacks one for SCL. Why? I dunno. When I added a pullup for SCL, I was able to read/ ... |
Topic: problem with I2C master on 16f88 |
epv
Replies: 1
Views: 4220
|
Forum: General CCS C Discussion Posted: Sat Feb 23, 2008 4:43 am Subject: problem with I2C master on 16f88 |
I've just started playing with i2c, and I'm having a hard time with making this chip speak i2c.
I'm using the sw implementation, since 16f88 can only do i2c slave in hardware.
If I use the PCM ... |
|