Hi Giovanni
I need delays for LCD, they need to be 1, 2, 4, 5, 10, 100 and 200 micro seconds(us)
so some helper method would be nice to make: delay_us(uint32_t utime)
Also I did next:
In halconf.h
#define HAL_USE_GPT TRUE
In mcuconf.h
#define STM32_GPT_USE_TIM1 TRUE
TImer config
static const ...
Search found 13 matches
- Wed Nov 23, 2016 11:22 am
- Forum: STM32 Support
- Topic: STM32F103C8T6 delay not precise
- Replies: 17
- Views: 11100
- Wed Nov 23, 2016 3:45 am
- Forum: STM32 Support
- Topic: STM32F103C8T6 delay not precise
- Replies: 17
- Views: 11100
Re: STM32F103C8T6 delay not precise
I check a bit implementation and it is OK have no impact
But would like to sort this micro delay, can someone help me with timers and how I can get it working for delay in us???
I'm new to this and would use some help, I have enable GPT and not sure which timer should I use?
Can be any of timers or ...
But would like to sort this micro delay, can someone help me with timers and how I can get it working for delay in us???
I'm new to this and would use some help, I have enable GPT and not sure which timer should I use?
Can be any of timers or ...
- Tue Nov 22, 2016 11:05 pm
- Forum: STM32 Support
- Topic: STM32F103C8T6 delay not precise
- Replies: 17
- Views: 11100
Re: STM32F103C8T6 delay not precise
I have tried with timers but no success
Not at that level yet that I can easily develop with ChibiOS (yet )
But here is solution I have got working and tested with Logic Analyzer
Got times
for turning ON 1us
for turning OFF 1.125us (without palSetPadModetime is 1.35us just for reference ...
Not at that level yet that I can easily develop with ChibiOS (yet )
But here is solution I have got working and tested with Logic Analyzer
Got times
for turning ON 1us
for turning OFF 1.125us (without palSetPadModetime is 1.35us just for reference ...
- Tue Nov 22, 2016 12:53 pm
- Forum: STM32 Support
- Topic: STM32F103C8T6 delay not precise
- Replies: 17
- Views: 11100
Re: STM32F103C8T6 delay not precise
he is using this
https://github.com/PetteriAimonen/ED060 ... c#L79-L105
and I don't like to mix it with timers/delays (not reliable) so trying right way
https://github.com/PetteriAimonen/ED060 ... c#L79-L105
and I don't like to mix it with timers/delays (not reliable) so trying right way
- Tue Nov 22, 2016 12:34 pm
- Forum: STM32 Support
- Topic: STM32F103C8T6 delay not precise
- Replies: 17
- Views: 11100
Re: STM32F103C8T6 delay not precise
I have 2 of EPD
one is: LB060S01
https://developer.mbed.org/media/upload ... 1-rd02.pdf
and second: ED060SC4
http://essentialscrap.com/eink/ED060SC4V2.pdf
and for drive waveforms http://essentialscrap.com/eink/waveforms.html
you will see there delay needed for 1, 2, 4, 5, 100 and 200 us
And as he was using STM32L series is not as STM32F1 so trying to make port
one is: LB060S01
https://developer.mbed.org/media/upload ... 1-rd02.pdf
and second: ED060SC4
http://essentialscrap.com/eink/ED060SC4V2.pdf
and for drive waveforms http://essentialscrap.com/eink/waveforms.html
you will see there delay needed for 1, 2, 4, 5, 100 and 200 us
And as he was using STM32L series is not as STM32F1 so trying to make port
- Tue Nov 22, 2016 10:57 am
- Forum: STM32 Support
- Topic: STM32F103C8T6 delay not precise
- Replies: 17
- Views: 11100
Re: STM32F103C8T6 delay not precise
True that...I need to learn how to use them with ChibiOS, have general knowledge only
Also I need them only for delay, nothing else...so should be simple (but I guess not so much)
Also I need them only for delay, nothing else...so should be simple (but I guess not so much)
- Tue Nov 22, 2016 9:52 am
- Forum: STM32 Support
- Topic: STM32F103C8T6 delay not precise
- Replies: 17
- Views: 11100
Re: STM32F103C8T6 delay not precise
I know I will never have really 100% correct timings
but can have very close to my need
And how would I archive this with Timers? Any directions?
Which one TImer should I user TIM1 or TIM2?
And how to use them?
And how would I archive this with Timers? Any directions?
Which one TImer should I user TIM1 or TIM2?
And how to use them?
- Tue Nov 22, 2016 2:33 am
- Forum: STM32 Support
- Topic: STM32F103C8T6 delay not precise
- Replies: 17
- Views: 11100
STM32F103C8T6 delay not precise
Hi all
I have BluePill and STM32F103C8T6 I need delays 1, 4, 10 and 100 (micro/us) and 1ms and 10ms (for LCD timing)
but I don't have it correct timings on current setup
Here is test project I'm working on: m
And trying to adjust this for test on LED to turn off/on in specific time (1, 2, 4 and ...
I have BluePill and STM32F103C8T6 I need delays 1, 4, 10 and 100 (micro/us) and 1ms and 10ms (for LCD timing)
but I don't have it correct timings on current setup
Here is test project I'm working on: m
And trying to adjust this for test on LED to turn off/on in specific time (1, 2, 4 and ...
- Tue Nov 22, 2016 1:58 am
- Forum: STM32 Support
- Topic: STM32F103C8T6 support
- Replies: 8
- Views: 8520
Re: STM32F103C8T6 support
thx for reply
Agree that is not related so will open new topic
Agree that is not related so will open new topic
- Tue Nov 22, 2016 12:17 am
- Forum: STM32 Support
- Topic: STM32F103C8T6 support
- Replies: 8
- Views: 8520
Re: STM32F103C8T6 support
I think someone have already issues with timers, so I'm asking for this specific STM32F103C8T6
Here is little bit more about board
m
now on issue
Delays are wrong, so maybe could someone guide me trough my config
m
I'm getting wrong delays (for any microseconds)
Here is my chSysPolledDelayX ...
Here is little bit more about board
m
now on issue
Delays are wrong, so maybe could someone guide me trough my config
m
I'm getting wrong delays (for any microseconds)
Here is my chSysPolledDelayX ...