S3C84E5/C84E9/P84E9

8-BIT TIMER A/B

 

 

TIMER B PULSE WIDTH CALCULATIONS

tHIGH

tLOW

tLOW

To generate the above repeated waveform consisted of low period time, tLOW, and high period time, tHIGH.

When T-FF = 0,

tLOW = (TBDATAL + 1) x 1/fx, 0H < TBDATAL < 100H, where fx = The selected clock. tHIGH = (TBDATAH + 1) x 1/fx, 0H < TBDATAH < 100H, where fx = The selected clock.

When T-FF = 1,

tLOW = (TBDATAH + 1) x 1/fx, 0H < TBDATAH < 100H, where fx = The selected clock. tHIGH = (TBDATAL + 1) x 1/fx, 0H < TBDATAL < 100H, where fx = The selected clock.

To make tLOW = 24 us and tHIGH = 15 us. fOSC = 4 MHz, fx = 4 MHz/4 = 1 MHz

When T-FF = 0,

tLOW = 24 us = (TBDATAL + 1) /fx = (TBDATAL + 1) x 1us, TBDATAL = 23. tHIGH = 15 us = (TBDATAH + 1) /fx = (TBDATAH + 1) x 1us, TBDATAH = 14.

When T-FF = 1,

tHIGH = 15 us = (TBDATAL + 1) /fx = (TBDATAL + 1) x 1us, TBDATAL = 14. tLOW = 24 us = (TBDATAH + 1) /fx = (TBDATAH + 1) x 1us, TBDATAH = 23.

11-7

Page 251
Image 251
Samsung S3C84E5 user manual Timer B Pulse Width Calculations, 11-7