He guys,
I'm trying to get work the "look for Value" function within the circular buffer.
According to the exmples in flowcode i build a quick test in simulation and also with hardware uart.
Both do not give any reaction on the return value.
What am i doing wrong! Tried several configs but still no reaction. Do i oversee something?
Some help wanted.
Best regards and thnaks.
Patrick
Look For in Circular Buffer does not react in real and Sim.
Moderator: Benj
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
Look For in Circular Buffer does not react in real and Sim.
- Attachments
-
- CB test.fcfx
- (8.26 KiB) Downloaded 234 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Look For in Circular Buffer does not react in real and S
Hi Patrick,
If looking for OK then O = 0x4F
K = 0x4B not the values you have got within your flowchart (0x0B & 0x0F).
You can see what hex values are by going to: http://www.asciitable.com/
Martin
If looking for OK then O = 0x4F
K = 0x4B not the values you have got within your flowchart (0x0B & 0x0F).
You can see what hex values are by going to: http://www.asciitable.com/
Martin
Martin
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
Re: Look For in Circular Buffer does not react in real and S
Hi Martin,
Al is working well with the circular buffer.
My project uses a PIC24EP with onboard USB.
For now i'm using a FTDI chip to convert the mcu's uart1 to virtual usb uart.
Now i build a virtual uart on the mcu's USB port and this works in the test.
In the FTDI version i receive data thru through the circular buffer triggered by Uart interupt.
This works quick and relaiable.
My queston is:
I can't find an interupt for the USB uart.
Checking the forum i found a fixed counter triggered interupt (4000 times a second) to put the usb byte into the circular buffer. Not triggered by an USB interupt!
Does an USB read Interupt excist?
Is a fixed counter intrupt to read data reliable?
What about baudrate. Can or do i have to set this?
Many thanks for now.
Best regards,
Patrick
Al is working well with the circular buffer.
My project uses a PIC24EP with onboard USB.
For now i'm using a FTDI chip to convert the mcu's uart1 to virtual usb uart.
Now i build a virtual uart on the mcu's USB port and this works in the test.
In the FTDI version i receive data thru through the circular buffer triggered by Uart interupt.
This works quick and relaiable.
My queston is:
I can't find an interupt for the USB uart.
Checking the forum i found a fixed counter triggered interupt (4000 times a second) to put the usb byte into the circular buffer. Not triggered by an USB interupt!
Does an USB read Interupt excist?
Is a fixed counter intrupt to read data reliable?
What about baudrate. Can or do i have to set this?
Many thanks for now.
Best regards,
Patrick