Comments (5)
Hi Nikolay,
CC, PER Register widths are different for 8-bit/16-bit/32-bit mode in TC.
In datasheet also, we have different sections and offset given for different modes.
Do you see any discrepancy in writing to CC or PER registers?
Do you see any functional issue with period and duty cycle of the generated waveform?
Thanks,
Prachi
from csp.
Generated code gives me PWM with one clock positive pulse(I set 50% duty in GUI).
When I'm trying to set new value it has no effect.
Pulse duration should be set by CC1 register, but it doesn't change.(see pic. 1)
I noticed that in IO view registers CC0 CC1 have 32-bit widths(for 16-bit timer), so I tried to use 32-bit pointer and it worked.(see pic. 2)
Look at IO view: CC0 addr - 0x1C, CC1 addr -0x20. I don't see such addresses in register summary for all timers.
from csp.
Based on the code snippet, I believe that you are using MPWM mode to generate PWM waveform.
In MPWM waveform, CC0 decides period and CC1 decides duty cycle and output should be observed on WO[1] pin. WO[0] output is one always clock pulse irrespective of CC1 value.
Can you please let me know:
- Which device are you using?
- Are you checking WO[1] output?
- Is waveform frequency coming correctly?
Regards,
Prachi
from csp.
Hi Nikolay,
Are you able to get correct period and duty on WO[1] pin?
Please let me know if issue still persists.
Regards,
Prachi
from csp.
@kick2nick , I am closing the ticket as there is no update from your side. If you are still facing the issue, you can reopen the ticket and provide your observations. Thank you.
from csp.
Related Issues (20)
- There is a bug that BSP cannot be mapped in Function Type of Pin Settings. HOT 2
- UART Polling process problem HOT 8
- printf processing issue HOT 2
- NVM Driver Documentation missing function HOT 3
- SPI Library Documentation HOT 2
- 2 CANFD on PIC32MK1024MCM100 HOT 4
- Wrong variable usage in SPI slave tempates HOT 2
- Accessor to tickCounter in interrupt HOT 4
- exceptionsHandler.s.ftl HOT 2
- Vector Table incorrectly defined HOT 3
- Unable to update package using content manager HOT 1
- Harmony Configurator's Pin Configuration and Peripherals availability for SAMD10C14A differs from datasheet HOT 4
- PWM0_CH3 not listed in configuration for ATSAME70N19B HOT 3
- SMBus features request for PIC32MZ series devices. HOT 1
- Harmony Configurator's Pin Configuration and Peripherals availability for PIC32MK1024MCM100 differs from datasheet HOT 1
- UARTx_SerialSetup HOT 14
- Extended CAN template issue HOT 2
- PIC32MZW WTD reset clock initialisation HOT 3
- Infinite loop in SDHC driver.
- How to send and receive CAN FD Frames with more than 8 Bytes of data.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csp.