• Difference between Simulated and real timings
    I am using an AT89C53-24 microcontroller with a 12.000 MHz crystal. My program uses hardware timer (T1-Mode 1, interrupts enabled) to provide a 20 mSec heartbeat, and hardware timer (T0-Mode 1, interrupts...
  • Can simulator approximate real-time?
    I have developed some C51 software and it works fine in the simulator, the only problem is that the simulator goes far too fast! Strings that are only supposed to come out of the serial port once per...
  • Varying dutycycle
    Hi, I am using cortex-M3. I need to generate a square wave using ADC values. Also i need to change the duty cycle. Already i have used timer program to generate square wave with 16ms of timeperiod...
  • Hardware PWM - vary the frequency
    I'm using a Philips P89C668 at 16MHz in 6-clock mode. I've got a piezo (with internal driver) on P1.3 (CEX0). I'd like to switch to a speaker and output PWM to get different tones. However, I can't find...
  • Why is simulator not equal to real life hardware?
    I'm new to embeded C. I've got a Phytec Philips C552 chip and connected a LCD to it. I've made a simple prg to display char or string. Char works perfectly string brings only garbage. When I run the prg...