electronics forum

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

how to use timer in 18f4550


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> how to use timer in 18f4550
Author Message
anuphr



Joined: 05 Aug 2009
Posts: 11


Post21 Aug 2009 7:06   

18f4550 timer


can u tell me how to use a timer in 18f4550...
if u have a program plz post it
Back to top
Google
AdSense
Google Adsense




Post21 Aug 2009 7:06   

Ads




Back to top
Tajinder Singh



Joined: 12 Jun 2009
Posts: 18
Helped: 2


Post21 Aug 2009 15:17   

18f4550


you must first read the datasheet and try it

any problems will be solved
Back to top
elrayes



Joined: 03 Jun 2008
Posts: 164
Helped: 8
Location: Egypt


Post21 Aug 2009 15:56   

timers 18f4550


First read the datasheet to check the clock used for the timer, configuration & associated interrupt registers.
Second: inside the code you need to set
- Interrupt Service routine (ISR): small part assembly code you will add, actually it is one line assembly.
- set the ISR vectors
inside the main() function:
- set interrupts registers.
- set Timer register configuration (TxCON, x = 0,1,2,3 for PIC18F4550).
- write inside the ISR your application code.

Enjoy your timer Smile
Good luck
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 use timer in 18f4550
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
using timer for 16f877 or 18f4550 (3)
How to use TIMER function on CodeVision (15)
power off delay- need help to use timer for specified use (1)
timer use (2)
bs2PE Watchdog or use a timer (1)
Can I use timer for duel purpose (2)
Can I use MCU to represent the function of Timer NE555?? (1)
how to use Graphic LCD Mobile phone by use pic 16f877 (6)
How to use multi cpu when use Ultrasim? (1)
How to use 220vac to use 24vdc relay.... (1)


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