| Electronic Components Datasheet Search |
|
PIC16F18323-E/RF Datasheet(PDF) 185 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F18323-E/RF Datasheet(HTML) 185 Page - Microchip Technology |
|
185 / 442 page ![]() 2015 Microchip Technology Inc. Preliminary DS40001799A-page 185 PIC16(L)F18313/18323 19.7.1.3 Pin Override Levels The levels driven to the CWG outputs during an auto- shutdown event are controlled by the LSBD<1:0> and LSAC<1:0> bits of the CWG1AS0 register (Register 19-6). The LSBD<1:0> bits control CWG1B/ D output levels, while the LSAC<1:0> bits control the CWG1A/C output levels. 19.7.1.4 Auto-shutdown Interrupts When an auto-shutdown event occurs, either by software or hardware setting SHUTDOWN, the CWG1IF flag bit of the PIR4 register is set (Register 7-11). 19.8 Auto-Shutdown Restart After an auto-shutdown event has occurred, there are two ways to resume operation: • Software controlled • Auto-restart In either case, the shut-down source must be cleared before the restart can take place. That is, either the shutdown condition must be removed, or the corresponding ASxE bit must be cleared. 19.8.1 SOFTWARE-CONTROLLED RESTART If the REN bit of the CWG1AS0 register is clear (REN = 0), the CWG module must be restarted after an auto-shutdown event through software. Once all auto-shutdown sources are removed, the software must clear SHUTDOWN. Once SHUTDOWN is cleared, the CWG module will resume operation upon the first rising edge of the CWG data input. 19.8.2 AUTO-RESTART If the REN bit of the CWG1AS0 register is set (REN = 1), the CWG module will restart from the shut- down state automatically. Once all auto-shutdown conditions are removed, the hardware will automatically clear SHUTDOWN. Once SHUTDOWN is cleared, the CWG module will resume operation upon the first rising edge of the CWG data input. 19.9 Operation during Sleep The CWG module will operate during Sleep, provided that the input sources remain active. If the HFINTOSC is selected as the module clock source, dead-band generation will remain active. This will have a direct effect on the Sleep mode current. 19.10 Configuring the CWG 1. Ensure that the TRIS control bits corresponding to CWG outputs are set so that all are configured as inputs, ensuring that the outputs are inactive during setup. External hardware should ensure that pin levels are held to safe levels. 2. Clear the EN bit, if not already cleared. 3. Configure the MODE<2:0> bits of the CWG1CON0 register to set the output operating mode. 4. Configure the POLy bits of the CWG1CON1 register to set the output polarities. 5. Configure the DAT<3:0> bits of the CWG1DAT register to select the data input source. 6. If a Steering mode is selected, configure the STRx bits to select the desired output on the CWG outputs. 7. Configure the LSBD<1:0> and LSAC<1:0> bits of the CWG1AS0 register to select the auto- shutdown output override states (this is necessary even if not using auto-shutdown because start-up will be from a shutdown state). 8. If auto-restart is desired, set the REN bit of CWG1AS0. 9. If auto-shutdown is desired, configure the ASxE bits of the CWG1AS1 register to select the shut- down source. 10. Set the desired rising and falling dead-band times with the CWG1DBR and CWG1DBF registers. 11. Select the clock source in the CWG1CLKCON register. 12. Set the EN bit to enable the module. 13. Clear the TRIS bits that correspond to the CWG outputs to set them as outputs. 14. If auto-restart is to be used, set the REN bit and the SHUTDOWN bit will be cleared automatically. Otherwise, clear the SHUTDOWN bit in software to start the CWG. Note: SHUTDOWN bit cannot be cleared in software if the auto-shutdown condition is still present. Note: SHUTDOWN bit cannot be cleared in software if the auto-shutdown condition is still present. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |