Comments (4)
iotdk board has a 6 channel pwm_timer module, related code in:
board/iotdk/drivers/ip/designware/pwm_timer
device/ip/designware/pwm_timer
device/ip/ip_hal/inc
from embarc_osp.
May I ask about its highest possible PWM clock output rate? Thanks!
from embarc_osp.
int main(void)
{
io_arduino_config(ARDUINO_PIN_3, ARDUINO_PWM, IO_PINMUX_ENABLE);//pwm timer ch0
DEV_PWM_TIMER_CFG ch0_pwm_cfg;
ch0_pwm_cfg.mode = DEV_PWM_TIMER_MODE_PWM;
ch0_pwm_cfg.count_high = 500;
ch0_pwm_cfg.count_low = 500;
ch0_pwm_cfg.isr_hander = NULL;
DEV_PWM_TIMER_PTR pwm_timer_test = pwm_timer_get_dev(DW_PWM_TIMER_0_ID);
pwm_timer_test->pwm_timer_open();
pwm_timer_test->pwm_timer_control(0, PWM_TIMER_CMD_SET_CFG, (void *)(&ch0_pwm_cfg));
while(1);
}
you can do some test. the clock of pwm is 144 MHz
output rate = 144MHz / (count_high + count_low)
duty = count_high / (count_high + count_low)
then number of count_high and count_low should not be to small.
from embarc_osp.
thanks! I can use PWM now. really appreciate your help.
from embarc_osp.
Related Issues (20)
- Document version info need update HOT 1
- Missing document for freertos/stack_check example HOT 1
- Question: Device HAL for ADC ports HOT 3
- Lwm2m Client example unable to read/write/observe from server
- IoTDK cannot read SD card HOT 1
- make parameter LINKER_SCRIPT_FILE is not documented HOT 1
- Can I use the compiled MLI library to implement my own AI algorithm?
- IOTDK SDcard can not read my own project HOT 4
- default linker script fails to support RESTART button for MDB HOT 3
- GNU build sets GP to _f_sdata instead of __SDATA_BEGIN__
- AGU context preserving for FreeRTOS tasks. HOT 7
- How to read from sd memory? HOT 5
- ad7991 HOT 2
- Bluetooth hm10 HOT 5
- update date and time HOT 4
- Request for an example available in embARC that demonstrates use of the quad SPI flash on EMSDP HOT 1
- Missing makefile arguments for building, running and debugging HOT 1
- Could you add support for ARC MPU_VERSION=6 ?
- Execution via OpenOCD is broken due to wrong scripts folder
- norflash erase last address calculation error HOT 1
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 embarc_osp.