Extract Microchip PIC12F752 Code

The A/D converter module can operate during Sleep. This requires the A/D clock source to be set to the internal oscillator. When the RC clock source is selected in the process of Extract Microchip PIC12F752 Code, the A/D waits one instruction before starting the conversion when extract microchip code.

This allows the SLEEP instruction to be executed, thus eliminating much of the switching noise from the conversion. When the conversion is complete, the GO/DONE bit is cleared and the result is loaded into the ADRESH:ADRESL registers. If the A/D interrupt is enabled, the device awakens from Sleep if microchip code being extracted.

If the GIE bit (INTCON<7>) is set, the program counter is set to the interrupt vector (0004h). If GIE is clear, the next instruction is executed. If the A/D interrupt is not enabled, the A/D module is turned off, although the ADON bit remains set before extract microchip code.

When the A/D clock source is something other than RC, aSLEEP instruction causes the present conversion to be aborted, and the A/D module is turned off. The ADON bit remains set after code from microchip being extracted.

Data EEPROM memory is readable and writable and the Flash program memory is readable during normal operation (full VDD range). These memories are not directly mapped in the register file space. Instead, they are indirectly addressed through the Special Function Registers. There are six SFRs used to access these memories when extract microchip code:

  • EECON1
  • EECON2
  • EEDATL
  • EEDATH
  • EEADRL

When interfacing the data memory block, EEDATL holds the 8-bit data for read/write, and EEADRL holds the address of the EE data location being accessed. This device has 256 bytes of data EEPROM with an address range from 0h to 0FFh if Break IC code.