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
  • Advertise
You are here: Home / Topics / nrf24le1 timers

nrf24le1 timers

|

Microcontroller › 8051 › nrf24le1 timers

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 9 months ago by nikhiljain.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 8, 2011 at 2:25 pm #1273
    Norma Mueller
    Participant

    Hi!

    i am having trouble with the timer2 of nrf24le1… i simply never get an interrupt… this is how i config and start the timer 2:

     

    T2CON = 0x00; //Clear Timer

    T2CON = 0x10; //Timer2 Clocked with CkCPU/12- Autoreload on overflow

    CRCL = (unsigned char) RELOAD_VAL_2;

    CRCH = (unsigned char) (RELOAD_VAL_2>>8);

    TL2 = (unsigned char) RELOAD_VAL_2;

    TH2 = (unsigned char) (RELOAD_VAL_2>>8);

    ET2=1;

    T2CON |= 0x01; //Starts Timer2

    IEN0 |= (0x01 << 5);

    EA1 = 1;

     

    has anybody an idea what i am doing wrong?

     

    my program is very simple.. it contains just one timer2 which i config and start and then i increment a variable in the interrupt function.. that is all..

     

    thanks !

    Norma

    September 20, 2011 at 8:42 am #6635
    nikhiljain
    Participant

    These are the common logical mistakes:

     

    1. Interrupts have not been enebaled.

    2. Registers have not been configured correctly.

    3. Interrupts have not been enabled at the right place in the code.

    4. ISR in not correctly written.

     

    Try if you doing any of the fowwloing mistakes.

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

RSS Recent Posts

  • PIC KIT 3 not able to program dsPIC June 16, 2025
  • Failure of polypropylene motor-run capacitors June 16, 2025
  • Siemens large industrial PLC parts June 16, 2025
  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz June 16, 2025
  • Curved lines in PCB design June 16, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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
  • Advertise