![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Three phase sinusoidal PWM example for the STM32L432 Nucleo
Dependencies: mbed
sine.h
- Committer:
- f3d
- Date:
- 2019-03-26
- Revision:
- 0:88449c646fbd
File content as of revision 0:88449c646fbd:
#define PWM_STEPS 270 unsigned short sine_table[]={ 135, 138, 141, 144, 148, 151, 154, 157, 160, 163, 166, 169, 172, 175, 178, 181, 184, 187, 190, 193, 196, 198, 201, 204, 207, 209, 212, 214, 217, 219, 222, 224, 226, 229, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 250, 252, 253, 255, 256, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 267, 268, 268, 269, 269, 270, 270, 270, 270, 270, 270, 270, 270, 269, 269, 268, 268, 267, 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, 256, 255, 253, 252, 250, 249, 247, 245, 243, 241, 239, 237, 235, 233, 231, 229, 226, 224, 222, 219, 217, 214, 212, 209, 207, 204, 201, 198, 196, 193, 190, 187, 184, 181, 178, 175, 172, 169, 166, 163, 160, 157, 154, 151, 148, 144, 141, 138, 135, 132, 129, 126, 122, 119, 116, 113, 110, 107, 104, 101, 98, 95, 92, 89, 86, 83, 80, 77, 74, 72, 69, 66, 63, 61, 58, 56, 53, 51, 48, 46, 44, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21, 20, 18, 17, 15, 14, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 3, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 17, 18, 20, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 44, 46, 48, 51, 53, 56, 58, 61, 63, 66, 69, 72, 74, 77, 80, 83, 86, 89, 92, 95, 98, 101, 104, 107, 110, 113, 116, 119, 122, 126, 129, 132, };