50 likes | 194 Views
EMK310 Additional notes XC866 timing From XC866 datasheet. Timing with internal osc = 10 MHz. Different clock frequencies. Thus…. The internal oscillator runs at f osc = 10 MHz The XC866 system frequency f sys = 80 MHz (refer to page 2 for equation)
E N D
Thus… • The internal oscillator runs at fosc = 10 MHz • The XC866 system frequency fsys = 80 MHz (refer to page 2 for equation) • Other clock sources derived from fsys usually by dividing by 3. • Clock relevant for Timers is peripheral clock fPCLK = 26.7 MHz • Clock relevant for instructions is CPU clock fCCLK = 26.7 MHz
Baud rate calculation for 9600 BAUD • fPCLK = 26.7 MHz • PRE = 1 • BAUD rate = 9600 • BG = fPCLK /(baud rate x 16 x PRE) – 1 = 26.7e6 /(9600 x 16 x 1) – 1 = 173 = ADh