electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

How to interpret a TTL signal with 16F887?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> How to interpret a TTL signal with 16F887?
Author Message
calamaro



Joined: 08 Oct 2009
Posts: 2


Post04 Nov 2009 15:48   

How to interpret a TTL signal with 16F887?


Hi to all, I have a 16F887 pic and I have connected at pin RA4 a TTL signal like in attached picture. How can I write a function that recognise the time of a low or high signal transmitted? If the signal is (low or high) for 256µs I have to put into an array 0 otherwise if the signal is 512µs I have to put into an array 1. Like in the picture the time measure of signal must be from low to high of the square wave.

Thanks to all for your help



Sorry, but you need login in to view this attachment

Back to top
hameeds01



Joined: 23 Aug 2005
Posts: 308
Helped: 15
Location: NUST Islamabad


Post04 Nov 2009 16:36   

Re: How to interpret a TTL signal with 16F887?


u can use Capture Pulse Width from CCP Register
Back to top
Google
AdSense
Google Adsense




Post04 Nov 2009 16:36   

Ads




Back to top
calamaro



Joined: 08 Oct 2009
Posts: 2


Post04 Nov 2009 19:25   

Re: How to interpret a TTL signal with 16F887?


hameeds01 wrote:
u can use Capture Pulse Width from CCP Register


I've never used CCP Module, could you post an example please?
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> How to interpret a TTL signal with 16F887?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
How to interpret reading from LM335Z? (5)
How can Interface TTL magnetic card reader with printer port (9)
how to interpret hardware generated from vhdl code (6)
Amplification of Signal to TTL signal (7)
relacing 5V TTL tolerant FPGA with 3.3V TTL I/O tolerant FP (2)
0-5V TTL Signal (18)
50MHz TTL signal (6)
what's TTL sine signal ? (1)
RS485 to TTL signal conversion (5)
Generate TTL signal from low voltage input (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS