Author |
Message |
Topic: PWM |
tom_hanks
Replies: 2
Views: 4409
|
Forum: General CCS C Discussion Posted: Wed Oct 10, 2007 8:37 am Subject: PWM |
void pwmTask(unsigned int pulse_width,unsigned int period)
{
unsigned int time_on = pulse_width;
unsigned int time_off = period - pulse_width;
while(1)
{
pwm_output = 1; //pwm_output = signa ... |
Topic: How to detect input - output signal |
tom_hanks
Replies: 16
Views: 17132
|
Forum: General CCS C Discussion Posted: Fri Sep 28, 2007 6:03 am Subject: How to detect input - output signal |
use a opamp in comparator mode...
for 3.5 v it should give u low voltage
and for high 4v it shoudl give u high logic at the output...
LMC7101 is best for this type of application |
Topic: How to detect input - output signal |
tom_hanks
Replies: 16
Views: 17132
|
Forum: General CCS C Discussion Posted: Thu Sep 27, 2007 9:31 am Subject: How to detect input - output signal |
Assign this signal to interrupt pin...
use a timer according to the speed of the signal....
so when ever signal transit from high to low, ISR will set the flag to low....
1. with the help of ... |
Topic: 8-bit microprocessor interface |
tom_hanks
Replies: 10
Views: 9891
|
Forum: General CCS C Discussion Posted: Thu Jul 26, 2007 5:47 am Subject: 8-bit microprocessor interface |
thank you every one for your help...
lots of my doubts are clear now..
i have chnged the ckt and now using a Port D for data lines...
cheers,
tom |
Topic: Best serial comms program for PC? |
tom_hanks
Replies: 10
Views: 14621
|
Forum: General CCS C Discussion Posted: Thu Jul 26, 2007 5:41 am Subject: Best serial comms program for PC? |
in help file it is mention that
"The SIOW.EXE program included in the program directory "
but in my PICC folder there is no program directory..
can u put some focus..
or any othe ... |
Topic: EC mode..oscillator |
tom_hanks
Replies: 0
Views: 2860
|
Forum: General CCS C Discussion Posted: Thu Jul 26, 2007 5:33 am Subject: EC mode..oscillator |
ALL,
System is using a 30Mhz OSC in EC mode. the output of PIC, OSC2(FoSC/4 =7.5Mhz) is feed to pheripheral chip.
on based on OSC2 output i have to generate some control signals..
which is the ... |
Topic: 8-bit microprocessor interface |
tom_hanks
Replies: 10
Views: 9891
|
Forum: General CCS C Discussion Posted: Wed Jul 18, 2007 9:28 am Subject: 8-bit microprocessor interface |
data lines are split between different ports...
like:
D4-D0 RA4-RA0(PortA)
D7-D5 RB3-RB1(PortB)
i tried to use union and #define
but still it not working
cheers,
tom
#define DATA ... |
Topic: 8-bit microprocessor interface |
tom_hanks
Replies: 10
Views: 9891
|
Forum: General CCS C Discussion Posted: Wed Jul 18, 2007 9:08 am Subject: A numeric expression ??? |
to write a 8 bit data on D7-D0, i am using following code...
but for a command "output_low(DATA_BIT.D
while (! input(uP_CLK)); //wait till CLK is low
//write 8bit control byt ... |
Topic: how to hold the higher value in PIC |
tom_hanks
Replies: 3
Views: 4476
|
Forum: General CCS C Discussion Posted: Wed Jul 18, 2007 9:02 am Subject: how to hold the higher value in PIC |
thank you for reply..
can u suggest some other method..
.................
this is the list version
MPLAB 7.40.00.00 Certified
ICDDB 7.30.00.00 n\a
MasterDB 2 ... |
Topic: Best serial comms program for PC? |
tom_hanks
Replies: 10
Views: 14621
|
Forum: General CCS C Discussion Posted: Wed Jul 18, 2007 5:52 am Subject: try this |
Hello,
Try Br(at)y++ Terminal.
You can download it from:
hxxp://www.hwgroup.cz/supp_rem_serial_en.html
best regards. |
Topic: how to hold the higher value in PIC |
tom_hanks
Replies: 3
Views: 4476
|
Forum: General CCS C Discussion Posted: Wed Jul 18, 2007 5:49 am Subject: how to hold the higher value in PIC |
PIC is sampling at 20 KSPS a ADC signal (i.e volage i/p) in continous mode.
In every 200ms cycle, PIC is storing the maximum value and passing it on I2C bus.
but sometime PIC is not able to cap ... |
Topic: 8-bit microprocessor interface |
tom_hanks
Replies: 10
Views: 9891
|
Forum: General CCS C Discussion Posted: Tue Jul 17, 2007 8:38 am Subject: 8-bit microprocessor interface |
Dear,
Can anyone provide me some suggestion or example to build a 8-bit uProcessor interface..
System is using PIC18F4320 and 8-bit uP interface(pheripheral chip).
TIA<
TOM |
Topic: I2C Write- no ACK |
tom_hanks
Replies: 7
Views: 9881
|
Forum: General CCS C Discussion Posted: Thu May 03, 2007 2:53 am Subject: I2C Write- no ACK |
Hello Experts,
Finally I found out the that I have to do I2C bus recovery.
It happens when master fails a read operation in a slave...
solution:
reset the slave device or do a bus recovery seq ... |
Topic: I2C not working in 18F4520[error] |
tom_hanks
Replies: 3
Views: 7215
|
Forum: General CCS C Discussion Posted: Tue Apr 24, 2007 4:02 am Subject: I2C not working in 18F4520[error] |
i guess you need to do following change...
and may be you need to remove a while loop of BF in write_I2C...
unsigned char read_i2c(void)
{
if(PIC_SSPSTAT & PIC ... |
Topic: I2C Write- no ACK |
tom_hanks
Replies: 7
Views: 9881
|
Forum: General CCS C Discussion Posted: Mon Apr 23, 2007 8:49 am Subject: I2C Write- no ACK |
I mean the due the improper software, ACK is not being generated by Master.
void write_i2c(unsigned char transmit_byte)
{
unsigned char write_collision = 1;
if(PIC_PIR1 &am ... |
|