EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
You are here: Home / Topics / PIC18f4520 Timer Interrupt

PIC18f4520 Timer Interrupt

|

Microcontroller › PIC › PIC18f4520 Timer Interrupt

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 3 months ago by AJISH ALFRED.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 13, 2012 at 9:48 am #1504
    amardeep
    Participant

     

    HI ..

    I am using PIC18f4520 Microcontroller and want to genrate clock of 10ms.
    Please guide me how to Calculate timer value for 10ms using timer0 Inerrupt of PIC18F4520

    April 17, 2012 at 1:57 am #7467
    faizal
    Participant

    if you’re looking for guide, this guide is already good enough:

    http://www.engineersgarage.com/embedded/pic-microcontroller-projects/timer-circuit

    May 6, 2012 at 6:17 pm #7601
    AJISH ALFRED
    Participant

    The basic idea is that the timer is a nothing but a counter which will generate an interrupt when it overflows, and the which increments its count each time a pulse received at the timer module. That pulse is derived from your main clock source, ie a the frequency of the clock will be a fraction of the main clock frequency, usually mainclock/4. 

    You know the main clock frequency, divide it by four, find the number of clocks/counts required. Subtrsct that number from the maximum count possible, and set that count value as base count

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Washing Machine motor August 14, 2022
  • arduino help needed August 14, 2022
  • Looking for amplifier ic August 14, 2022
  • Light Automation via mqtt August 14, 2022
  • Right channel distortion on vintage fisher rs-2010 August 14, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools