Author |
Message |
Topic: timer0 with 12f675 |
alex323qp
Replies: 13
Views: 24269
|
Forum: General CCS C Discussion Posted: Wed Jul 06, 2011 9:47 pm Subject: timer0 with 12f675 |
wow! I can't believe it was so simple!
You are my heroes guys!!!
It's finally working. I just moved the variable above the procedure (as Ttelmah suggested) and it worked.
I also noticed that ... |
Topic: timer0 with 12f675 |
alex323qp
Replies: 13
Views: 24269
|
Forum: General CCS C Discussion Posted: Wed Jul 06, 2011 4:37 pm Subject: timer0 with 12f675 |
Guys, I really appreciate your help!
I haven't been able to test it, as I'm about to leave, I'll be back in a couple of hours and I'll let you know how is going.
Thanks again. |
Topic: timer0 with 12f675 |
alex323qp
Replies: 13
Views: 24269
|
Forum: General CCS C Discussion Posted: Wed Jul 06, 2011 2:02 am Subject: timer0 with 12f675 |
Ok, this is the original code without the modifications I mentioned before:
#include <12F675.h>
#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO //Inte ... |
Topic: timer0 with 12f675 |
alex323qp
Replies: 13
Views: 24269
|
Forum: General CCS C Discussion Posted: Tue Jul 05, 2011 10:19 pm Subject: timer0 with 12f675 |
PCM Programmer, this is my configuration:
1. PCM Compiler V4.114
2. I'm using a usb programmer compatible with K149, this is it:
http://www.ebay.com.au/itm/USB-Interface-PIC-Programmer-40-ZIF-M ... |
Topic: timer0 with 12f675 |
alex323qp
Replies: 13
Views: 24269
|
Forum: General CCS C Discussion Posted: Tue Jul 05, 2011 9:03 pm Subject: timer0 with 12f675 |
Vdd is 3V, from 2 AA batteries... The only 2 devices connected are a xbee module and the pic itself. So I reckon it doesn't have any noise.
I also tested the circuit with 5V from a regulated power ... |
Topic: timer0 with 12f675 |
alex323qp
Replies: 13
Views: 24269
|
Forum: General CCS C Discussion Posted: Tue Jul 05, 2011 7:56 pm Subject: timer0 with 12f675 |
Guys, still having problems... nobody?? really?
I updated my code to check my theory about resetting...
void main()
{
int8 t = restart_cause();
switch (t)
... |
Topic: ITG 3200 gyro |
alex323qp
Replies: 7
Views: 11192
|
Forum: General CCS C Discussion Posted: Thu Jun 23, 2011 6:28 pm Subject: ITG 3200 gyro |
Ok, apparently I've got not idea how to comunicate with my device...
This is my reading function:
BYTE read_gyro()
{
BYTE ret;
i2c_start();
i2c_write(0xD2 ... |
Topic: ITG 3200 gyro |
alex323qp
Replies: 7
Views: 11192
|
Forum: General CCS C Discussion Posted: Thu Jun 23, 2011 4:53 pm Subject: ITG 3200 gyro |
wow, thanks!!!
So apparently it's working quite good. However, now I need to send register addresses to read the data... But, where can I find a conversor from 7-bit to 8-bit... cos the datasheet h ... |
Topic: ITG 3200 gyro |
alex323qp
Replies: 7
Views: 11192
|
Forum: General CCS C Discussion Posted: Thu Jun 23, 2011 3:33 pm Subject: ITG 3200 gyro |
Hi, I reckon I've got the correct resistors, 10k from SDA to vcc and 10k from SCL to vcc... The device works up to 400k.
To be honest, this is my first attempt with I2c, so i'm kind of newbie. And ... |
Topic: ITG 3200 gyro |
alex323qp
Replies: 7
Views: 11192
|
Forum: General CCS C Discussion Posted: Wed Jun 22, 2011 11:49 pm Subject: ITG 3200 gyro |
Has anybody used the ITG 3200 gyro??
I'm trying to comunicate with it using pic 12f675 (Yes, it doesn't have i2c ports)... but I can't get any answer from it... The datasheet says it works on addre ... |
Topic: timer0 with 12f675 |
alex323qp
Replies: 13
Views: 24269
|
Forum: General CCS C Discussion Posted: Wed Jun 22, 2011 5:07 am Subject: timer0 with 12f675 |
Hi Ttelmah, thanks for your reply and sorry for my delay...
All about rs232 and printf was just for give an example, the real problem is that the program doesn't continue after activating interrupt ... |
Topic: timer0 with 12f675 |
alex323qp
Replies: 13
Views: 24269
|
Forum: General CCS C Discussion Posted: Fri Jun 17, 2011 1:06 am Subject: timer0 with 12f675 |
Hi guys, I've got a problem that is really pissing me off! I'm trying to enable timer0 interruptions with pic 12f675, I've searched and tried all possible examples, but nothing seems to work. This is ... |
|