PIC24FJ256GA705
Budget: $30 – $250 USD
1. System overview
Use the smallest system of PIC24FJ256GA705 single-chip microcomputer, as shown in the circuit diagram below. All peripheral modules on the MCU except ADC are closed. ADC samples 2 points every 4ms, each sampling point is 12bit, no processing is needed after sampling. The MCU sleeps during the non-AD sampling period.
2. Please answer the following 7 questions.
1. Set RA0 as the input terminal of ADC, configure other useless I/O pins as output and output low level. Please give the relevant register and register value.
2. Except ADC, all peripheral modules are disabled (Disable). Please give the relevant register and register value.
3. The MCU main frequency is set to 8MHz. Please give the relevant register and register value.
4. Watchdog works all the time, using LPRC as the clock source, waking up the MCU every 4ms. Please give the relevant register and register value.
5. The ADC uses the system clock, TAD = 2 TCY, TAQ = 1 TCY, the reference voltage is VDD and VSS, AN0 is used as ADC input, each sampling point is 12 bits. Please give the relevant register and register value. (Prompt, only need to configure AD1CON1, AD1CON3)
6. Low-Voltage Retention Sleep should be used for MCU sleep. How to set the three control bits of LPCFG, RETEN and VREG to minimize the power consumption of MCU sleep?
7. Please estimate the minimum average power consumption of the system and give the calculation method.
Use the smallest system of PIC24FJ256GA705 single-chip microcomputer, as shown in the circuit diagram below. All peripheral modules on the MCU except ADC are closed. ADC samples 2 points every 4ms, each sampling point is 12bit, no processing is needed after sampling. The MCU sleeps during the non-AD sampling period.
2. Please answer the following 7 questions.
1. Set RA0 as the input terminal of ADC, configure other useless I/O pins as output and output low level. Please give the relevant register and register value.
2. Except ADC, all peripheral modules are disabled (Disable). Please give the relevant register and register value.
3. The MCU main frequency is set to 8MHz. Please give the relevant register and register value.
4. Watchdog works all the time, using LPRC as the clock source, waking up the MCU every 4ms. Please give the relevant register and register value.
5. The ADC uses the system clock, TAD = 2 TCY, TAQ = 1 TCY, the reference voltage is VDD and VSS, AN0 is used as ADC input, each sampling point is 12 bits. Please give the relevant register and register value. (Prompt, only need to configure AD1CON1, AD1CON3)
6. Low-Voltage Retention Sleep should be used for MCU sleep. How to set the three control bits of LPCFG, RETEN and VREG to minimize the power consumption of MCU sleep?
7. Please estimate the minimum average power consumption of the system and give the calculation method.