Hi,
I am working on an ATMEGA2560 with avr chipset. Overall goal I am trying to receive data from a device on ch1(inspectra), receive data from another device ch3(weather), and send clean info from both devices out via ch2(modbusSlave). I added a 2nd circular buffer so all weather data can be fed to ...
Search found 37 matches
- Tue Apr 04, 2023 12:29 am
- Forum: General
- Topic: custom interrupt for ch3 for ATMEGA2560
- Replies: 3
- Views: 2421
- Mon Apr 03, 2023 9:55 pm
- Forum: General
- Topic: add a second circular buffer?
- Replies: 5
- Views: 3585
Re: add a second circular buffer?
I found this article on custom interrupts for AVR. https://www.flowcode.co.uk/wiki/index.php?title=Custom_Interrupts_-_AVR
How can I customize this for channel 3?
Enable code:
UCSRB |= ((1 << RXCIE) | (1 << RXEN)); // enable USART receiver and receive interrupts
Disable code:
//UCSRB &= ~(1 ...
How can I customize this for channel 3?
Enable code:
UCSRB |= ((1 << RXCIE) | (1 << RXEN)); // enable USART receiver and receive interrupts
Disable code:
//UCSRB &= ~(1 ...
- Mon Apr 03, 2023 9:43 pm
- Forum: General
- Topic: add a second circular buffer?
- Replies: 5
- Views: 3585
Re: add a second circular buffer?
Hi so if I understand correctly I should not do what I did below? I need to make an RXINT2 since FC does not have one made for me to use. Is there a way I can reverse engineer RXINT1 or RXINT0 so I can make an RXINT2?
Thank you!
Thank you!
- Mon Apr 03, 2023 8:08 pm
- Forum: General
- Topic: add a second circular buffer?
- Replies: 5
- Views: 3585
add a second circular buffer?
Hi,
I am programming an AVR ATMEGA2560 with AVR chipset. My program is supposed to poll two devices on (inspectra)ch1 and ch3(weather) via UART. There is a Modbus slave that is sending out the cleaned info on ModbusSlave ch2. I have been successful with inspectra and ModbusSlave working in tandem. I ...
I am programming an AVR ATMEGA2560 with AVR chipset. My program is supposed to poll two devices on (inspectra)ch1 and ch3(weather) via UART. There is a Modbus slave that is sending out the cleaned info on ModbusSlave ch2. I have been successful with inspectra and ModbusSlave working in tandem. I ...
- Tue Mar 28, 2023 10:33 pm
- Forum: Bug Reports
- Topic: UART error with holding registers
- Replies: 3
- Views: 3042
Re: UART error with holding registers
Thank you. I tried out the code. I was getting 0 in the 100 register. i used my LCD to diagnose the issue. I am getting back a string "00200E". See image below. I am supposed to get "H00200\r" I did try other strings and numbers all didn't have any issues. I can't figure out what is removing that ...
- Tue Mar 28, 2023 12:36 am
- Forum: Bug Reports
- Topic: UART error with holding registers
- Replies: 3
- Views: 3042
UART error with holding registers
Hi,
I made a program that sends a command to a device, the device returns a string that is cleaned and put into a holding register. I am doing this to get three different strings.
The issue I am having is that after I get the model number from the device the other items I get from the device ...
I made a program that sends a command to a device, the device returns a string that is cleaned and put into a holding register. I am doing this to get three different strings.
The issue I am having is that after I get the model number from the device the other items I get from the device ...
- Thu Mar 23, 2023 6:01 pm
- Forum: Feature Requests
- Topic: Calculation for Hex to Number
- Replies: 2
- Views: 2591
Calculation for Hex to Number
Hi,
A request I would like to make is a HEXTONUMBER() in the calculation f$ options.
A request I would like to make is a HEXTONUMBER() in the calculation f$ options.
- Wed Mar 22, 2023 11:20 pm
- Forum: General
- Topic: ScrollDisplay for lcd_I2C1
- Replies: 1
- Views: 1362
ScrollDisplay for lcd_I2C1
Hello,
I am playing with LCD I2C (Backpack) component. I was wondering how I to work the ScrollDisplay. I am unsure of what to input for the direction? I was looking at the wiki https://www.flowcode.co.uk/wiki/index.php?title=Component:_LCD_I2C_(Backpack)_(Alphanumeric) and it was not helpful. I ...
I am playing with LCD I2C (Backpack) component. I was wondering how I to work the ScrollDisplay. I am unsure of what to input for the direction? I was looking at the wiki https://www.flowcode.co.uk/wiki/index.php?title=Component:_LCD_I2C_(Backpack)_(Alphanumeric) and it was not helpful. I ...
- Mon Mar 20, 2023 9:39 pm
- Forum: General
- Topic: circular buffer
- Replies: 1
- Views: 1532
circular buffer
Hi,
I was wondering is the circular buffer restricted to 8/16 bits? I have a fixed 99 byte string incoming that I am going to parse after receiving. I was wondering if I can use the circular buffer for these 99 bytes string?
I was wondering is the circular buffer restricted to 8/16 bits? I have a fixed 99 byte string incoming that I am going to parse after receiving. I was wondering if I can use the circular buffer for these 99 bytes string?
- Wed Mar 15, 2023 8:21 pm
- Forum: General
- Topic: Modbus RS232 Setholdingregister
- Replies: 8
- Views: 5462