Search found 6 matches
- Wed Jun 30, 2021 9:36 am
- Forum: General Discussion and Questions
- Topic: Implementing SENT Interface in MicroPython?
- Replies: 11
- Views: 4084
Re: Implementing SENT Interface in MicroPython?
Hi Roberthh, I also tried now the Viper Code emitter. The minimal reachable low time is now 4,4µs... So also not sufficiant. Meanwhile I switched to C-Implementation. Here I could reach the tick time - even below 3µs with timer interrupt programming. Thanx for your support and for the example code. ...
- Mon Jun 21, 2021 10:22 am
- Forum: General Discussion and Questions
- Topic: Implementing SENT Interface in MicroPython?
- Replies: 11
- Views: 4084
Re: Implementing SENT Interface in MicroPython?
I tried it one time again with direct register access of the GPIO in the ISR. The low-time goes to 15,20µs - which is not sufficiant. The problem would be the slow ISR-call on Python level as you mentioned - I think. So it makes no difference if the ISR itselfes is native C or not. So - I switch to ...
- Tue Jun 15, 2021 11:20 am
- Forum: General Discussion and Questions
- Topic: Implementing SENT Interface in MicroPython?
- Replies: 11
- Views: 4084
Re: Implementing SENT Interface in MicroPython?
Hi Peter, I already found this out. What do you think about my implementation idea according the bit-generation: "Is it shure, that the timer callback will be performed all 3µs when I install it like this: tim = pyb.Timer(1) tim.init(freq=333333) tim.callback(tick) The callback "tick" then would be ...
- Mon Jun 14, 2021 3:21 pm
- Forum: General Discussion and Questions
- Topic: Implementing SENT Interface in MicroPython?
- Replies: 11
- Views: 4084
Re: Implementing SENT Interface in MicroPython?
Thanx Roberthh,
unfortunately my self-compiled OLIMEX-H405 port (STM32) has not yet the RMT module. May be I can add this?
But I think not - its an other processor...
But nevertheless thanx for the code - I have the same challange with the CRC
best regards
Mario
unfortunately my self-compiled OLIMEX-H405 port (STM32) has not yet the RMT module. May be I can add this?
But I think not - its an other processor...
But nevertheless thanx for the code - I have the same challange with the CRC
best regards
Mario
- Mon Jun 14, 2021 2:26 pm
- Forum: General Discussion and Questions
- Topic: Implementing SENT Interface in MicroPython?
- Replies: 11
- Views: 4084
Re: Implementing SENT Interface in MicroPython?
Hi pythoncoder, thanx for the fast reply. So as a mentioned - inline C or assembler would be possible. So I try to implement the bit generator in C as a Timer callback. Is it shure, that the timer callback will be performed all 3µs when I install it like this: tim = pyb.Timer(1) tim.init(freq=333333...
- Mon Jun 14, 2021 12:31 pm
- Forum: General Discussion and Questions
- Topic: Implementing SENT Interface in MicroPython?
- Replies: 11
- Views: 4084
Implementing SENT Interface in MicroPython?
Hallo *, I planned to implement a simulator for the SENT-Interface (Single Edge Nibble Transmission) in Micropython in an OLIMEX STM32-H405 board. Unfortunately I found out, that the Micropython Main loop is too slow for the bit generation according to the SENT-Spec. I need at least a 9µs low-pulse ...