Cậu có thể nói rõ hơn được ko:
Mình đọc data sheet:
There are three primary clock oscillators: XTL, XT and HS. The XTL oscillator is designed for crystals or ceramic resonators in the range of 200 kHz to 4 MHz. The XT oscillator is designed for crystals and ceramic resonators in the range of 4 to 10 MHz. The HS (High-Speed) oscillator is for crystals in the 10 to 25 MHz range. These oscillators use the OSC1 and OSC2 pins. The secondary (LP) oscillator is designed for low power and uses a 32 kHz crystal or ceramic resonator. The LP oscillator uses the SOSC1 and SOSC2 pins
Theo mình hiểu ở đây có 3 bộ dao động ngoài: XTL; XT; HS. Khai báo vậy thì có phục thuộc vào phần cúng không? Ở trên nếu dùng thạch anh 8Mhz thì theo tớ hiểu khai báo là _FOSC(CSW_FSCM_OFF&XT); 20Mhz thì _FOSC(CSW_FSCM_OFF&HS); Nhưng mình khai báo lẫn lộn mà không thấy có sự khác biệt'
|