Author |
Message |
Topic: dsPIC33 HSPWM, phase-shift PG2 relative to PG1 not working |
SalihLabs
Replies: 4
Views: 11728
|
Forum: General CCS C Discussion Posted: Wed May 31, 2023 11:37 am Subject: dsPIC33 HSPWM, phase-shift PG2 relative to PG1 not working |
Correct, this is only running for the slave.
The AFPLLO is producing 0.5Ghz:
void AFPLLO_settings(void)
{
// can get AFVCO to 1GHz and AFPLLO to 500MHz
// Configure APLL pr ... |
Topic: dsPIC33 HSPWM, phase-shift PG2 relative to PG1 not working |
SalihLabs
Replies: 4
Views: 11728
|
Forum: General CCS C Discussion Posted: Tue May 30, 2023 11:35 pm Subject: dsPIC33 HSPWM, phase-shift PG2 relative to PG1 not working |
Hi all,
I'm using the dsPIC33CH512MP508, a dsPIC with a master and slave core. Currently using PCWHD 5.093.
The HSPWM configuration settings are based on the Microchip code example on github: ht ... |
Topic: dsPIC33 HSPWM, unable to adjust period using set_hspwm_phase |
SalihLabs
Replies: 3
Views: 12369
|
Forum: General CCS C Discussion Posted: Mon Jul 27, 2020 6:29 pm Subject: dsPIC33 HSPWM, unable to adjust period using set_hspwm_phase |
Thank you for the reply Ttelmah. Unfortunately, set_hspwm_duty only controls the duty cycle. After looking under CCS index I came across "set_hspwm_period", which solved my issue. I'm now ab ... |
Topic: dsPIC33 HSPWM, unable to adjust period using set_hspwm_phase |
SalihLabs
Replies: 3
Views: 12369
|
Forum: General CCS C Discussion Posted: Fri Jul 24, 2020 8:21 am Subject: dsPIC33 HSPWM, unable to adjust period using set_hspwm_phase |
Hi all,
I'm using the dsPIC33CH512MP508, a dual core PIC with a master and slave core. Currently using PCWHD 5.093.
I'm able to generate a push-pull signal on PWM1H and PWM1L, and adjust the dut ... |
Topic: Dual core dsPIC33CH, Master core running, Slave core doesnt |
SalihLabs
Replies: 9
Views: 22543
|
Forum: General CCS C Discussion Posted: Wed Jul 22, 2020 9:17 am Subject: Dual core dsPIC33CH, Master core running, Slave core doesnt |
Thanks for the clarification. |
Topic: Dual core dsPIC33CH, Master core running, Slave core doesnt |
SalihLabs
Replies: 9
Views: 22543
|
Forum: General CCS C Discussion Posted: Wed Jul 22, 2020 8:04 am Subject: Dual core dsPIC33CH, Master core running, Slave core doesnt |
You are correct! I have replaced the crystal with a 20MHz version (measured at 19.68 MHz), and the slave led is flashing and Master UART outputting the ADC reading from the MSI.
I am slightly confu ... |
Topic: Dual core dsPIC33CH, Master core running, Slave core doesnt |
SalihLabs
Replies: 9
Views: 22543
|
Forum: General CCS C Discussion Posted: Wed Jul 22, 2020 7:15 am Subject: Dual core dsPIC33CH, Master core running, Slave core doesnt |
The crystal has 64MHz engraved on it, the timing was all wrong and UART was printing garbage. So I probed the crystal output and that was the frequency coming out of it (21.336Mhz), once I entered tha ... |
Topic: Dual core dsPIC33CH, Master core running, Slave core doesnt |
SalihLabs
Replies: 9
Views: 22543
|
Forum: General CCS C Discussion Posted: Tue Jul 21, 2020 4:56 pm Subject: Dual core dsPIC33CH, Master core running, Slave core doesnt |
Hi,
I am using the dsPIC33CH512MP508 with the example code "ex_ch_master.c" and "ex_ch_slave.c" files, slightly modified to match the clock and master/slave led pins. I am using ... |
|