Author |
Message |
Topic: How to tell the difference of the Microchip by name? |
falleaf
Replies: 5
Views: 11801
|
Forum: General CCS C Discussion Posted: Sun Aug 01, 2004 11:04 am Subject: Re: How to tell the difference of the Microchip by name? |
THere is a bunch of microchips, like 16c73, 16f73, 16LC84, , 16CR83,16HV540, 16f877, 16f877a, 12f675, what does
Chip name
16 f 877 a
1 2 3 4
these parts in the name means
The ' ... |
Topic: Pullup resistors on which lines for atmel dataflash? |
falleaf
Replies: 1
Views: 7201
|
Forum: General CCS C Discussion Posted: Sun Aug 01, 2004 10:41 am Subject: Pullup resistors on which lines for atmel dataflash? |
which chip u r using? New chips have internal pullups. Old ones have internal pullups on port 0 as I remember. |
Topic: Simple PID control |
falleaf
Replies: 4
Views: 16741
|
Forum: General CCS C Discussion Posted: Tue Jun 29, 2004 12:30 pm Subject: Simple PID control |
Yes mike, normally, we can compute PID like Kp, Ki, Kd, but in some case, they use Kp (1 + Ki' (...) + Kd' (...)). But in this case, it's so strange. And it must be something wrong.
I finished my P ... |
Topic: How to use the Hyperterminal program |
falleaf
Replies: 36
Views: 71138
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2004 12:40 pm Subject: Re: Alternative to Hyperterminal |
I avoid using Hyperterminal. It always give me problems. Instead I use Terminal available free here:
http://bray.velenje.cx/avr/terminal
Thanks muchie, I see it easier to use.
1) Hook up th ... |
Topic: calculation in CCS C |
falleaf
Replies: 8
Views: 16560
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2004 6:28 am Subject: calculation in CCS C |
I found the problem. We cannot do it with local variables, as I put it out as global variables, the program worked very good.
Thanks for all. |
Topic: How to use the Hyperterminal program |
falleaf
Replies: 36
Views: 71138
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2004 6:15 am Subject: How to use the Hyperterminal program |
Nope, I had a basic program to xmit from PC to PIC, but I would like to ask how to xmit with Hyperterminal? |
Topic: How to use the Hyperterminal program |
falleaf
Replies: 36
Views: 71138
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2004 3:54 am Subject: How to use the Hyperterminal program |
No, I dont talk about writing in PIC. I would like to know where can we fill in a byte, and give the send command to PIC in Hyperterminal. How we do that in HYperterminal??
I only see that when I c ... |
Topic: calculation in CCS C |
falleaf
Replies: 8
Views: 16560
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2004 3:51 am Subject: calculation in CCS C |
Oh, I tested with the program, and this is my code:
float velocity_temp=0;
float delta=0;
signed long delta1=0;
float delta2=0;
if (velo_motion < 0)
{
... |
Topic: How to use the Hyperterminal program |
falleaf
Replies: 36
Views: 71138
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2004 1:30 am Subject: How to use the Hyperterminal program |
how to send a byte form hyperterminal to pic? I only can read from it. it's perfect. |
Topic: calculation in CCS C |
falleaf
Replies: 8
Views: 16560
|
Forum: General CCS C Discussion Posted: Fri Jun 25, 2004 1:26 am Subject: calculation in CCS C |
with pos_motion = 10000, velo_motion = 50; I got this
delta = 2.875000delta = 2.875000delta = 2.875000delta = 2.875000delta = 2.875000
delta = 2.875000delta = 2.875000delta = 2.875000delta = 2.875 ... |
Topic: calculation in CCS C |
falleaf
Replies: 8
Views: 16560
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2004 5:35 pm Subject: calculation in CCS C |
I have to compute in signed format number because it's the motion control, and it may take negative values.
as using asm, to express a negative number, I take out a bit of direction, and compute wi ... |
Topic: calculation in CCS C |
falleaf
Replies: 8
Views: 16560
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2004 4:19 pm Subject: calculation in CCS C |
Thanks rnielsen, I'll try.
by the way,
what will happen if I force the format number as:
beta = (signed long) delta;???
will it save the high bytes of result as normal, or what will it do? |
Topic: RS232 |
falleaf
Replies: 7
Views: 16575
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2004 4:15 pm Subject: RS232 |
Another thing to note is that 4mhz won't support 9600baud
Duane
Oh, I can communicate with PC using 16f876 and 16f877 at 4Mhz osc at 9600 baud. it's oki. |
Topic: Need I2C examples |
falleaf
Replies: 41
Views: 94498
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2004 3:52 pm Subject: Need I2C examples |
Oh, I write all read function in mode (0).
byte1 = i2c_read(0);
byte2=i2c_read(0);
...
well, it's wrong??
I'll test and tell you the results tomorrow. Thanks muchie valemike |
Topic: calculation in CCS C |
falleaf
Replies: 8
Views: 16560
|
Forum: General CCS C Discussion Posted: Thu Jun 24, 2004 3:47 pm Subject: calculation in CCS C |
I would like to compute this formular in 16F876:
delta = (pos_motion*acceleration/velo_motion)*(pos_motion*acceleration/velo_motion) - 4*pos_motion*acceleration;
pos_motion, velo ... |
|