| Electronic Components Datasheet Search |
|
SN8F5708 Datasheet(PDF) 110 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8F5708 Datasheet(HTML) 110 Page - SONiX Technology Company |
|
110 / 204 page ![]() www.sonix.com.tw SN8F5708 Series Copyright © 2019, SONiX Technology Co., Ltd. PWM Datasheet Rev. 2.4 110 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 // PWM3_Initial PW3YH = 0xF0; PW3YL = 0xF0; PW3DH = 0x80; PW3DL = 0x80; PW3BH = 0x40; PW3BL = 0x40; PW3A = 0xF0; // PWM3 clock = Fosc/1, PW30/31 channel enable with one pulse PW3M = 0xE0 | PWM30En | PWM31En | PW3OnePu; // PW1/PW2/PW3 enable P1OC |= PW3En | PW2En | PW1En; // Enable PWM1 interrupt IEN4 |= 0x80; // Enable PWM2/PWM3 interrupt IEN2 |= 0x06; // Enable total interrupt IEN0 |= 0x80; P0 = 0x00; P0M |= 0x07; } void PW1Interrupt(void) interrupt ISRPwm1 //0x83 { //PWM1F clear by software if ((IEN4 & 0x08) == 0x08) { IEN4 &= 0xF7; //Clear PWM1F P00 = ~P00; } } void PW2Interrupt(void) interrupt ISRPwm2 //0x8B { //PWM2F clear by software if ((IRCON2 & 0x01) == 0x01) { IRCON2 &= 0xFE; //Clear PWM2F P01 = ~P01; } } void PW3Interrupt(void) interrupt ISRPwm3 //0x93 { //PWM3F clear by software if ((IRCON2 & 0x02) == 0x02) { IRCON2 &= 0xFD; //Clear PWM3F P02 = ~P02; } } |
|
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 |