PIC16F1947 - PWM(Enhanced Mode)
The enhanced PWM function described in this section is available for CCP modules ECCP1, ECCP2 and ECCP3, with any differences between modules noted.
이 절에서 설명된 향상된 성능의 PWM 기능은 CCP 모듈 ECCP1, ECCP2, ECCP3에 사용가능하고, 모듈들 사이의 서로 다른 점은. 설명되어 있다.
The enhanced PWM mode generates a Pulse-Width Modulation (PWM) signal on up to four different output pins with up to ten bits of resolution.
향상된 PWM 모드는 4개의 서로 다른 출력 핀에 10비트 분해능의 PWM 신호를 만들어낸다.
The period, duty cycle, and resolution are controlled by the following registers:
주기, 듀티, 그리고 분해능은 다음 레지스터들로 제어된다.
• PRx registers
• TxCON registers
• CCPRxL registers
• CCPxCON registers
The ECCP modules have the following additional PWM registers which control Auto-shutdown, Auto-restart,
Dead-band Delay and PWM Steering modes:
ECCP 모듈들은 자동 셧다운, 자동 재시작, Dead-band 딜레이, 그리고 PWM 스티어링모드를 관장하는 다음의 추가적인 PWM 레지스터들을 가지고 있다.
• CCPxAS registers
• PSTRxCON registers
• PWMxCON registers
The enhanced PWM module can generate the following five PWM Output modes:
향상된 PWM 모듈은 다음의 PWM 출력 모드들을 발생시킬 수 있다.
• Single PWM
• Half-Bridge PWM
• Full-Bridge PWM, Forward Mode
• Full-Bridge PWM, Reverse Mode
• Single PWM with PWM Steering Mode
To select an Enhanced PWM Output mode, the PxM bits of the CCPxCON register must be configured appropriately.
향상된 PWM 출력 모드를 선택하려면, CCPxCON 레지스터의 PxM 비트를 적절하게 설정해야만 한다.
The PWM outputs are multiplexed with I/O pins and are designated PxA, PxB, PxC and PxD.
PWM 출력들은 I/O 핀과 연결되어 있고 그들은 PxA, PxB, PxC, PxD이다.
The polarity of the PWM pins is configurable and is selected by setting the CCPxM bits in the CCPxCON register appropriately.
PWM핀의 극성은 설정이 가능하고, CCPxCON 레지스터의 CCPxM 비트들을 이용해서 설정한다.
Figure 23-5 shows an example of a simplified block diagram of the Enhanced PWM module.
그림 23-5는 향상된 PWM 모듈의 간략화된 블럭다이어그램의 예이다.
Table 23-9 shows the pin assignments for various Enhanced PWM modes.
표 23-9는 다양한 향상된 PWM 모드들에 대한 핀 할당을 보여준다.
23.4.7 START-UP CONSIDERATIONS
When any PWM mode is used, the application hardware must use the proper external pull-up and/or pull-down resistors on the PWM output pins.
PWM 모드가 사용될 때 어플리케이션 하드웨어는 적절한 외부 Pull-Up/Pull-Down 저항들을 PWM 출력 핀에 사용해야한다.
The CCPxM<1:0> bits of the CCPxCON register allow the user to choose whether the PWM output signals are active-high or active-low for each pair of PWM output pins (PxA/PxC and PxB/PxD).
CCPxCON 레지스터의 CCPxM<1:0> 비트들은 각 PWM 출력 핀 쌍(PxA/PxC, PxB/PxD)에 대해PWM 출력 시그널이 Active High 또는 Active Low인지 선택하는데 사용된다.
The PWM output polarities must be selected before the PWM pin output drivers are enabled.
PWM 출력의 극성은 PWM 핀 출력이 활성화 되기 전에 선택해야한다.
Changing the polarity configuration while the PWM pin output drivers are enable is not recommended since it may result in damage to the application circuits.
PWM 핀이 사용되고 있는 동안에 극성을 바꾸는 것은 어플리케이션 회로를 망가트릴 수 있는 결과를 만들 수 있기 때문에 권장하지 않는다.
The PxA, PxB, PxC and PxD output latches may not be in the proper states when the PWM module is initialized.
PWM 모듈의 초기화에서는 PxA, PxB, PxC, PxD 출력은 적정한 상태가 되지 않을 수도 있다.
Enabling the PWM pin output drivers at the same time as the Enhanced PWM modes may cause damage to the application circuit.
향상된 PWM 모드와 함께 PWM 핀 출력을 활성화 하는 것은 어플리케이션 회로를 망가트릴 수 있다.
The Enhanced PWM modes must be enabled in the proper Output mode and complete a full PWM cycle before enabling the PWM pin output drivers.
향상된 PWM 모드는 적절한 출력 모드가 활성화 되어야하고, PWM 핀 출력이 발생하기 전에 Full PWM 주기를 완성해야한다. (??)
The completion of a full PWM cycle is indicated by the TMRxIF bit of the PIRx register being set as the second PWM period begins.
전체 PWM 사이클이 완료는 것은 두 번 째 PWM 주기가 시작될 때 설정되는 PIRx 레지스터의 TMRxIF 비트로 표시된다.
Note: When the microcontroller is released from Reset, all of the I/O pins are in the high- mpedance state.
마이크로컨트롤러가 리셋에서 벗어났을 때 모든 I/O는 하이임피던스 상태이다.
The external circuits must keep the power switch devices in the Off state until the microcontroller drives the I/O pins with the proper signal levels or activates the PWM output(s).
외부 회로는 마이크로컨트롤러가 I/O 핀들을 적절한 신호 레벨 또는 PWM 출력을 활성화 시키는 동작이 이루어 질 때 까지, 파워스위치 디바이스들을 OFF 상태로 유지해야한다.
23.4.8 ALTERNATE PIN LOCATIONS
This module incorporates I/O pins that can be moved to other locations with the use of the alternate pin function register, APFCON.
이 모듈은 핀 기능 레지스터인 APFCON을 이용하여 위치를 다른 쪽으로 옮길 수 있는 I/O 핀들이 통합되어 있다.
To determine which pins can be moved and what their default locations are upon a reset, see Section 12.1 “Alternate Pin Function” for more information.
어떤 핀이 옮겨질 수 있고 기본 위치가 어디인지에 대해서 결정하는 것은 12.1 “Alternate Pin Function” 을 참조하라.