CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 92 matches
CCS Forum Index
Author Message
  Topic: Two Digit 7 Segment Display with 74LS48 BCD DECODER
Khansokhua

Replies: 9
Views: 7899

PostForum: General CCS C Discussion   Posted: Fri May 03, 2024 9:24 am   Subject: Two Digit 7 Segment Display with 74LS48 BCD DECODER
After I set RBI 'low'(active low) .Flickering is no more a problem.Another issue is implementing it using timer but it seems too slow.Do I need to increase frequency more to implement same thing using ...
  Topic: Two Digit 7 Segment Display with 74LS48 BCD DECODER
Khansokhua

Replies: 9
Views: 7899

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 8:41 pm   Subject: Two Digit 7 Segment Display with 74LS48 BCD DECODER
Thank you Mr.Ttelmah, I appreciate but it did not make any difference.It was still unuseful and I tried to use timer0 to observe something that makes any difference.Now the indicator numbers are more ...
  Topic: Two Digit 7 Segment Display with 74LS48 BCD DECODER
Khansokhua

Replies: 9
Views: 7899

PostForum: General CCS C Discussion   Posted: Mon Apr 29, 2024 8:43 am   Subject: Two Digit 7 Segment Display with 74LS48 BCD DECODER
I tried countering(0-9) both digit and it works properly.Here the circuit diagram https://freeimage.host/i/JgJ1oS2
Also, RBI blank, LT and BI/RB0 are high.
  Topic: Two Digit 7 Segment Display with 74LS48 BCD DECODER
Khansokhua

Replies: 9
Views: 7899

PostForum: General CCS C Discussion   Posted: Fri Apr 26, 2024 4:35 pm   Subject: Two Digit 7 Segment Display with 74LS48 BCD DECODER
Greetings,
I am trying to indicate some numbers that I declared for each digit simulteneaously.However, both digit indicate same value.I could not succed it trying below suggested method.Can some ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Thu Mar 30, 2023 1:47 pm   Subject: rs232 LED BLINK pıc-to-pıc communication
Using pickit3 debugger, I can observe from watch window: At max value of adc is constant 0xFF.
At min value 0x01 0x08 0xfd changes.
I can eliminate the values those cause problem,
so I can obtain ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Thu Mar 30, 2023 11:22 am   Subject: rs232 LED BLINK pıc-to-pıc communication
You sure don't like interrupts :-). Your style of coding, I guess, but you are only making it harder for yourself. Two things, the first is to shorten the code. If you have all of LEDs on the same por ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Thu Mar 30, 2023 8:30 am   Subject: rs232 LED BLINK pıc-to-pıc communication
Greetings Smile

As my teacher said ignore the problems doesn't solve them.Anyway Very Happy

I use 2xPIC16F877A, tx-rx rx-tx wired.

I use 8 bit ADC and control 8 different LED with a potentiometer. ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Wed Mar 29, 2023 7:45 am   Subject: rs232 LED BLINK pıc-to-pıc communication
while(TRUE)
{
distance=HCSR04_get_distance();

send_preamble();
putc(distance); //To take the data into the send_preamble( ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Tue Mar 28, 2023 8:12 pm   Subject: rs232 LED BLINK pıc-to-pıc communication
yes, had a feeling it that was that unit....

they are NOT 'RF modems' that are RS-232 type compatible devices so you cannot simply use the 'UART' form of communications(#USE RS-232(...options...). ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Tue Mar 28, 2023 4:36 pm   Subject: rs232 LED BLINK pıc-to-pıc communication
You really need to post a link to this module.
Some are well known to cause problems, others are good for over 1Km !

You may have a power supply issue, a 'wakeup the module ' issue, 5V vs 3V issue ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Tue Mar 28, 2023 1:28 pm   Subject: rs232 LED BLINK pıc-to-pıc communication
Greetings...Here we are, 2xPIC16F877A
I use HCSR-04 ultrasonic distance sensor and measure between 1 cm and 50 cm.
I see and measure correct for real. When I wired tx-rx rx-tx, I still measure ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Fri Mar 24, 2023 7:36 am   Subject: rs232 LED BLINK pıc-to-pıc communication
Ok, so it works on a master. How do you do it? Read ADC and feed the value into your servo control routine? How fast are you reading ADC and changing the width of pulses? Would you share the code that ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Fri Mar 24, 2023 7:00 am   Subject: rs232 LED BLINK pıc-to-pıc communication
What I meant is if you connect the servo with a PIC, can you control it the way you want with a pot? Without any serial? Does the motor behave correctly? In other words, do your motor control routines ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Fri Mar 24, 2023 6:08 am   Subject: rs232 LED BLINK pıc-to-pıc communication
Here I tried to modify sisr.c file.It seems I couldn't even move the motor.
#include <16F877A.h>
#FUSES HS, NOWDT,NOPROTECT, NOPUT , NOLVP, BROWNOUT
#use delay(clock=200 ...
  Topic: rs232 LED BLINK pıc-to-pıc communication
Khansokhua

Replies: 79
Views: 128034

PostForum: General CCS C Discussion   Posted: Fri Mar 24, 2023 5:00 am   Subject: rs232 LED BLINK pıc-to-pıc communication
If I understood correctly, you are trying to control a servo over serial. I'm saying this because your questions are jumping around a bit. I have some of my own:

1. Servo motor works on your master ...
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group