| Electronic Components Datasheet Search |
|
DSPIC30F5015 Datasheet(PDF) 157 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
DSPIC30F5015 Datasheet(HTML) 157 Page - Microchip Technology |
|
157 / 234 page ![]() © 2011 Microchip Technology Inc. DS70149E-page 157 dsPIC30F5015/5016 21.2.8 PROTECTION AGAINST ACCIDENTAL WRITES TO OSCCON A write to the OSCCON register is intentionally made difficult because it controls clock switching and clock scaling. To write to the OSCCON low byte, the following code sequence must be executed without any other instructions in between: Byte Write 0x46 to OSCCON low Byte Write 0x57 to OSCCON low Byte write is allowed for one instruction cycle. Write the desired value or use bit manipulation instruction. To write to the OSCCON high byte, the following instructions must be executed without any other instructions in between: Byte Write 0x46 to OSCCON low Byte Write 0x57 to OSCCON low Byte write is allowed for one instruction cycle. Write the desired value or use bit manipulation instruction. 21.3 Reset The dsPIC30F5015/5016 differentiates between various kinds of Reset: • Power-on Reset (POR) •MCLR Reset during normal operation •MCLR Reset during Sleep • Watchdog Timer (WDT) Reset (during normal operation) • Programmable Brown-out Reset (BOR) • RESET Instruction • Reset cause by trap lockup (TRAPR) • Reset caused by illegal opcode, or by using an uninitialized W register as an Address Pointer (IOPUWR) Different registers are affected in different ways by var- ious Reset conditions. Most registers are not affected by a WDT wake-up, since this is viewed as the resump- tion of normal operation. Status bits from the RCON register are set or cleared differently in different Reset situations, as indicated in Table 21-5. These bits are used in software to determine the nature of the Reset. A block diagram of the on-chip Reset circuit is shown in Figure 21-2. A MCLR noise filter is provided in the MCLR Reset path. The filter detects and ignores small pulses. Internally generated Resets do not drive MCLR pin low. 21.3.1 POR: POWER-ON RESET A power-on event will generate an internal POR pulse when a VDD rise is detected. The Reset pulse will occur at the POR circuit threshold voltage (VPOR), which is nominally 1.85V. The device supply voltage character- istics must meet specified starting voltage and rise rate requirements. The POR pulse will reset a POR timer and place the device in the Reset state. The POR also selects the device clock source identified by the oscillator configuration fuses. The POR circuit inserts a small delay, TPOR, which is nominally 10 μs and ensures that the device bias circuits are stable. Furthermore, a user selected power- up time-out (TPWRT) is applied. The TPWRT parameter is based on Configuration bits and can be 0 ms (no delay), 4 ms, 16 ms or 64 ms. The total delay is at device power-up TPOR + TPWRT. When these delays have expired, SYSRST will be negated on the next leading edge of the Q1 clock, and the PC will jump to the Reset vector. The timing for the SYSRST signal is shown in Figure 21-3 through Figure 21-5. FIGURE 21-2: RESET SYSTEM BLOCK DIAGRAM S R Q MCLR VDD VDD Rise Detect POR SYSRST Sleep or Idle Brown-out Reset BOREN RESET Instruction WDT Module Digital Glitch Filter BOR Trap Conflict Illegal Opcode/ Uninitialized W Register |
|
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 |