| Zakładka z wyszukiwarką danych komponentów |
|
The question interval is too short.
Please try again in a few seconds.
Hello, Please ask a question about PIC12F683 Datasheet
# Example questions:
➢ What does the 'adresh' register contain according to the datasheet?
➢ What is the function of the 'ccp1con' register?
➢ What are the recommended settings for the 'irp' and 'rp1' bits in the datasheet, and why?
I. Key Concepts and Common Abbreviations
️· Register: A location in memory used to store data or control settings for the microcontroller.
️· Bank 1 & Bank 0: The PIC12F683, like many PIC microcontrollers, has a memory organization where some registers are only accessible when the microcontroller is in a specific bank. Bank 0 (the first table) is the default. Bank 1 contains certain registers.
️· Unimplemented: These are memory locations that are reserved, but don't have a defined function. Reading from them always returns a '0'. Writing to them has no effect.
️· u (Unchanged): When a bit is marked "u", it means that during an operation, that bit will retain its previous value.
️· x (Unknown): The value of the bit depends on a particular condition or isn’t defined.
️· q (Value Depends on Condition): Similar to "x," but implies a more specific and potentially predictable condition dictates the value.
️· GIE (Global Interrupt Enable): Enables or disables all unmasked interrupts.
️· PEIE (Peripheral Interrupt Enable): Enables interrupts from the peripherals.
️· INTE (Interrupt Enable): Enables the interrupt request from the external interrupt pin.
️· GPIE (GPIO Interrupt Enable): Enables interrupts from the GPIO pins.
II. Bank 0 Registers (Default Access)
Let's organize these by functional area.
️· Core Registers:
- STATUS: (Address 0x03) Contains flags (bits) that indicate the results of arithmetic and logical operations. (e.g., Zero flag, Carry flag, Overflow flag). Important for conditional branching.
- PCLATH: (Address 0x0Ah) Program Counter High byte. Used with PCL to form the 16-bit Program Counter.
- FSR: (Address 0x04) File Select Register. Used with indirect addressing mode. Allows the microcontroller to access data stored at memory locations pointed to by FSR.
️· Interrupt Control:
- INTCON: (Address 0x0Bh) Interrupt control register. Contains flags for various interrupt sources and control bits to enable/disable them.
- PIR1: (Address 0x0Ch) Peripheral Interrupt Register 1. Contains flags to signal that a peripheral event has occurred.
️· GPIO Control:
- GPIO: (Address 0x05) Read/Write register for the GPIO pins. Allows you to read the input state of these pins and write output values.
️· Timer/Counter Related Registers:
- TMR0: (Address 0x02) Timer/Counter 0 Register. Holds the current value of the timer.
- TMR1L/H: Timer 1 Low/High registers (Address 0x10/0x11). 16-bit timer/counter.
- T2CON: Timer 2 Control Register
- TMR2: (Address 0x13) Timer/Counter 2 Register.
️· Analog-to-Digital Converter (ADC):
- ADCON0: ADC Control Register 0. Controls ADC operation.
- ADRESH: ADC Result High Register. Holds the most significant bits of the ADC result.
️· Comparator:
- CMCON0/1: Comparator Control Registers 0/1. Controls the comparator’s operation.
️· Watchdog Timer (WDT):
- WDTCON: Watchdog Timer Control Register. Configuration register for the Watchdog Timer.
III. Bank 1 Registers (Requires Bank Switching)
These registers are *not* accessible by default and require the microcontroller to switch banks (using the `BSF` and `BCF` instructions on the `STATUS` register).
️· CCP1CON: Capture/Compare/PWM Control Register 1. Controls the functionality of the Capture/Compare/PWM module.
️· CCPR1L/H: Capture/Compare/PWM Register 1 Low/High. Used for setting up PWM frequencies, capture values, and compare values.
️· T1CON: Timer 1 Control Register. Configures Timer 1's prescaler, clock source, and other settings.
️· CMCON0: Comparator Control Register
IV. Important Notes/Caveats
️· Unimplemented Locations: Treat addresses listed as "Unimplemented" as read-only zeros. Writing to them has no effect.
️· Bit Definitions: The datasheet provides detailed descriptions of what each bit in the registers *does*. You *must* consult the datasheet to understand the effects of changing a bit's value.
️· Bank Switching: When using registers in Bank 1, remember that you must explicitly switch banks. Failing to do so will result in unexpected behavior.
️· '—' (Dash) Notation: A dash in the table typically means the bit is not affected by the operation being described. It does *not* necessarily mean that the bit is unused or that it has no purpose; it just means it’s not being modified in that specific case.
️· Careful Interpretation: The table format can be confusing. Pay close attention to the footnotes and the overall context. Don't assume that a bit's function is obvious from its position in the table.
️· The exact task you're trying to accomplish.
️· The specific question you have about a particular register or bit.
I. Key Concepts and Common Abbreviations
️· Register: A location in memory used to store data or control settings for the microcontroller.
️· Bank 1 & Bank 0: The PIC12F683, like many PIC microcontrollers, has a memory organization where some registers are only accessible when the microcontroller is in a specific bank. Bank 0 (the first table) is the default. Bank 1 contains certain registers.
️· Unimplemented: These are memory locations that are reserved, but don't have a defined function. Reading from them always returns a '0'. Writing to them has no effect.
️· u (Unchanged): When a bit is marked "u", it means that during an operation, that bit will retain its previous value.
️· x (Unknown): The value of the bit depends on a particular condition or isn’t defined.
️· q (Value Depends on Condition): Similar to "x," but implies a more specific and potentially predictable condition dictates the value.
️· GIE (Global Interrupt Enable): Enables or disables all unmasked interrupts.
️· PEIE (Peripheral Interrupt Enable): Enables interrupts from the peripherals.
️· INTE (Interrupt Enable): Enables the interrupt request from the external interrupt pin.
️· GPIE (GPIO Interrupt Enable): Enables interrupts from the GPIO pins.
II. Bank 0 Registers (Default Access)
Let's organize these by functional area.
️· Core Registers:
- STATUS: (Address 0x03) Contains flags (bits) that indicate the results of arithmetic and logical operations. (e.g., Zero flag, Carry flag, Overflow flag). Important for conditional branching.
- PCLATH: (Address 0x0Ah) Program Counter High byte. Used with PCL to form the 16-bit Program Counter.
- FSR: (Address 0x04) File Select Register. Used with indirect addressing mode. Allows the microcontroller to access data stored at memory locations pointed to by FSR.
️· Interrupt Control:
- INTCON: (Address 0x0Bh) Interrupt control register. Contains flags for various interrupt sources and control bits to enable/disable them.
- PIR1: (Address 0x0Ch) Peripheral Interrupt Register 1. Contains flags to signal that a peripheral event has occurred.
️· GPIO Control:
- GPIO: (Address 0x05) Read/Write register for the GPIO pins. Allows you to read the input state of these pins and write output values.
️· Timer/Counter Related Registers:
- TMR0: (Address 0x02) Timer/Counter 0 Register. Holds the current value of the timer.
- TMR1L/H: Timer 1 Low/High registers (Address 0x10/0x11). 16-bit timer/counter.
- T2CON: Timer 2 Control Register
- TMR2: (Address 0x13) Timer/Counter 2 Register.
️· Analog-to-Digital Converter (ADC):
- ADCON0: ADC Control Register 0. Controls ADC operation.
- ADRESH: ADC Result High Register. Holds the most significant bits of the ADC result.
️· Comparator:
- CMCON0/1: Comparator Control Registers 0/1. Controls the comparator’s operation.
️· Watchdog Timer (WDT):
- WDTCON: Watchdog Timer Control Register. Configuration register for the Watchdog Timer.
III. Bank 1 Registers (Requires Bank Switching)
These registers are *not* accessible by default and require the microcontroller to switch banks (using the `BSF` and `BCF` instructions on the `STATUS` register).
️· CCP1CON: Capture/Compare/PWM Control Register 1. Controls the functionality of the Capture/Compare/PWM module.
️· CCPR1L/H: Capture/Compare/PWM Register 1 Low/High. Used for setting up PWM frequencies, capture values, and compare values.
️· T1CON: Timer 1 Control Register. Configures Timer 1's prescaler, clock source, and other settings.
️· CMCON0: Comparator Control Register
IV. Important Notes/Caveats
️· Unimplemented Locations: Treat addresses listed as "Unimplemented" as read-only zeros. Writing to them has no effect.
️· Bit Definitions: The datasheet provides detailed descriptions of what each bit in the registers *does*. You *must* consult the datasheet to understand the effects of changing a bit's value.
️· Bank Switching: When using registers in Bank 1, remember that you must explicitly switch banks. Failing to do so will result in unexpected behavior.
️· '—' (Dash) Notation: A dash in the table typically means the bit is not affected by the operation being described. It does *not* necessarily mean that the bit is unused or that it has no purpose; it just means it’s not being modified in that specific case.
️· Careful Interpretation: The table format can be confusing. Pay close attention to the footnotes and the overall context. Don't assume that a bit's function is obvious from its position in the table.
️· The exact task you're trying to accomplish.
️· The specific question you have about a particular register or bit.
| Part No. | PIC12F683 |
| Manufacturer | MICROCHIP |
| Size | 2Mb |
| Pages | 148 pages |
| Description | 8-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów 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 |