Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Necessity of crystal oscillator for a controller

Status
Not open for further replies.

Sajjadkhan

Full Member level 5
Joined
Sep 25, 2010
Messages
307
Helped
17
Reputation
34
Reaction score
16
Trophy points
1,298
Location
Rawalpindi,Pakistan
Activity points
4,199
I know a controller internal oscillator like in PIC is composed of RC oscillator and its frequency drifts as temperature drifts. so in UART communication we need to have an external oscillator, but is it also true in the case of SPI or I2C communication?
 

it all depends on the error rate that your design can accommodate....large frequency drift may introduce framing error which will certainly report false data to the system
 

In time-critical applications, it is better to use the external crystal oscillator instead of the internal RC oscillator.
 

PIC RC oscillator accuracy is often sufficient for UARToperation (depends on the temperature range and PIC type). I don't see a reason why it shouldn't work for SPI and I2C.
 

Both SPI and I2C are synchronous interfaces that utilize separate data and clock lines where the bit-data is sampled by the receiver relative to an edge of the clock signal. Therefore, the data rate does not have to be at a specific frequency - although devices will impose upper and lower frequency limits. Even if the RC oscillator in the PIC exhibits significant drift it should be well within the frequency range of any SPI or I2C device.
 
Both SPI and I2C are synchronous interfaces that utilize separate data and clock lines where the bit-data is sampled by the receiver relative to an edge of the clock signal. Therefore, the data rate does not have to be at a specific frequency - although devices will impose upper and lower frequency limits. Even if the RC oscillator in the PIC exhibits significant drift it should be well within the frequency range of any SPI or I2C device.

make sense :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top