| поискавой системы для электроныых деталей |
|
PIC12F752 датащи(PDF) 91 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC12F752 датащи(HTML) 91 Page - Microchip Technology |
|
91 / 204 page ![]() 2011 Microchip Technology Inc. Preliminary DS41576A-page 91 PIC12F752/HV752 11.9 Buffer updates Changes to the phase, dead band, and blanking count registers need to occur simultaneously during COG operation to avoid unintended operation that may occur as a result of delays between each register write. This is accomplished with the GxLD bit of the COGxCON0 register and double buffering of the phase, blanking, and dead-band count registers. Before the COG module is enabled, writing the count registers loads the count buffers without need of the GxLD bit. However, when the COG is enabled, the count buffers updates are suspended after writing the count registers until after the GxLD bit is set. When the GxLD bit is set, the phase, dead band, and blanking register values are transferred to the corresponding buffers synchronous with COG operation. The GxLD bit is cleared by hardware to indicate that the transfer is complete. 11.10 Alternate Pin Selection The COGxOUT0, COGxOUT1 and COGxFLT1 func- tions can be directed to alternate pins with control bits of the APFCON register. Refer to Register 5-1. 11.11 Operation During Sleep The COG continues to operate in Sleep provided that the COG_clock, rising event, and falling event sources remain active. The HFINTSOC remains active during Sleep when the COG is enabled and the HFINTOSC is selected as the COG_clock source. 11.12 Configuring the COG The following steps illustrate how to properly configure the COG to ensure a synchronous start with the rising event input: 1. Configure the desired COGFLT1 input, COGxOUT1 and COGxOUT2 pins with the cor- responding bits in the APFCON register. 2. Clear all ANSELA register bits associated with pins that are used for COG functions. 3. Ensure that the TRIS control bits corresponding to COGxOUT0 and COGxOUT1 are set so that both are configured as inputs. 4. Clear the GxEN bit, if not already cleared. 5. Set desired dead-band times with the COGxDB register. 6. Set desired blanking times with the COGxBLK register. 7. Set desired phase delay with the COGxPH register. 8. Setup the following controls in COGxASD auto-shutdown register: • Select desired shutdown sources. • Select both output overrides to the desired levels (this is necessary, even if not using auto-shutdown because start-up will be from a shutdown state). • Set the GxASDE bit and clear the GxARSEN bit. 9. Select the desired rising and falling edge sources with the COGxCON1 register. 10. Configure the following controls in COGxCON0 register: • Select the desired clock source • Select the desired output polarities • Set the output enables for the outputs to be used. 11. Set the GxEN bit. 12. Clear TRIS control bits corresponding to COGxOUT0 and COGxOUT1 to be used to con- figure those pins as outputs. 13. If auto-restart is to be used, set the GxARSEN bit and the GxASDE will be cleared automatically. Otherwise, clear the GxASDE bit to start the COG. Note: The default COG outputs have high drive strength capability, whereas the alternate outputs do not. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |