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 / Replies / Yes PWM is generated using

Yes PWM is generated using

|

Microcontroller › 8051 › How to control a PWM signal with counters in 8051 › Yes PWM is generated using

November 28, 2015 at 7:44 am #13529
Skylite
Participant

Yes PWM is generated using timers, and i'm getting the output of it,which i'm generating in different port.

Now I have taken a seperate I/O port, where i'm getting the signal high and low, now my question is

how to control this signal for particular count/timer period[say for about maximum 5 to 10 minutes the

signal should be high and next it should be low]

Here is the part of the code:

sbit CLOCK = P2^3;

unsigned char check = 1;

void timer1_ISR`(void)

{

//timer tick functions

if(check == 0)

{

CLOCK = 0;//getting a low signal

}

else

{

CLOCK = ! CLOCK;//toggling high& low

}

}

I'm checking this in the isr routine.

Hope I have not confused, please let me know where i'm going wrong.

 

RSS Recent Posts

  • Harman Kardon radio module BMW noise February 16, 2026
  • Arduino standalone minimal February 16, 2026
  • analog logic of shmidt trigger bjt circuit February 16, 2026
  • CR2/CR123A Batteries In Projects February 16, 2026
  • Math problem February 15, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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