Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] capture pwm signal in pic microcontroller

Status
Not open for further replies.

Ilia Gildin

Junior Member level 3
Joined
Sep 27, 2014
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
184
I am using the pic18f46k22 I read all the previous threads and that is what i manged to program and it wont work. (I need the program only in C)
P.S.
I read the user manual of the ICD3 and I know that it wont support printf function still if you know some magic trick will be WICKED OWSOM.
Sincerely Yours
Gildin Ilia
 

Attachments

  • rr3.txt
    1.4 KB · Views: 49

you should be able to use printf() with a pic18 if you connect a PC to the USART
1. if the PC has a RS232 COM port via a MAX232
2. with a suitable cable, e.g. USB/TTL
https://www.ftdichip.com/Products/Cables/USBTTLSerial.htm

you need to setup the USART with a baud rate etc to suit the terminal emulator on the PC
 
Thank you very much
but my main question remains can you show me a demo program that captures the pwm signal and shows its duty cycle and frequancy
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top