Search found 907 matches
- Tue Apr 06, 2021 6:39 pm
- Forum: General
- Topic: SCADA Component object Slave
- Replies: 13
- Views: 6036
SCADA Component object Slave
I'd like to create a component where if a Scada slave is added by the user it can be used in Scada mode. I can do this 'as source' where the SCADA slave can be added to the injector component - and this works well in simulation. FC__00047.jpg But I'd like to 'expose' this to the top level, so that I...
- Tue Apr 06, 2021 9:34 am
- Forum: General
- Topic: Problem with unsigned divide
- Replies: 3
- Views: 2067
Re: Problem with unsigned divide
Hi Peter,
Currently your result is changed to float after the division..
Either need
fresult = n / 32.0
or fresult = float(n) / 32
Martin
Currently your result is changed to float after the division..
Either need
fresult = n / 32.0
or fresult = float(n) / 32
Martin
- Wed Mar 31, 2021 7:33 pm
- Forum: Bug Reports
- Topic: Uart Interrupt on RXINT0
- Replies: 15
- Views: 7090
Re: Uart Interrupt on RXINT0
Yes, I appreciate that it's not acting as an interrupt at present. My thought was that if you were trying to use a Rx interrupt and receive chars in the handler - wait too long and characters might/will be missed. Interrupts are generally disabled automagically on an interrupt occurring - (this is p...
- Wed Mar 31, 2021 5:14 pm
- Forum: Bug Reports
- Topic: Uart Interrupt on RXINT0
- Replies: 15
- Views: 7090
Re: Uart Interrupt on RXINT0
Hi Alan, If serial_handler is your interrupt routine - you are possibly trying to do too much in it.. It should probably just stuff the received character into a buffer and then return - leaving the 'main' code to handle the data. Here - https://www.matrixtsl.com/mmforums/viewtopic.php?f=80&t=22344&...
- Mon Mar 29, 2021 1:58 pm
- Forum: General
- Topic: Combining bytes to form 32 bit value (24 bit)
- Replies: 16
- Views: 7719
Re: Combining bytes to form 32 bit value (24 bit)
There's definitely something awry - the upper bits should be 0 rather than 0xFF
Is there a signed shift going in somewhere by mistake (compiler/FC)
What value does Hi actually have? (ie is bit 7 set?)
Martin
Is there a signed shift going in somewhere by mistake (compiler/FC)
What value does Hi actually have? (ie is bit 7 set?)
Martin
- Mon Mar 29, 2021 1:37 pm
- Forum: General
- Topic: Combining bytes to form 32 bit value (24 bit)
- Replies: 16
- Views: 7719
Re: Combining bytes to form 32 bit value (24 bit)
Data high needs to be a 32 bit value too, or assign it to one before shifting.
Something like:
Result = hi
Result = (result << 16) + (mid << 8) + lo
Can use + or | (or) to combine
Martin
Something like:
Result = hi
Result = (result << 16) + (mid << 8) + lo
Can use + or | (or) to combine
Martin
- Tue Mar 23, 2021 8:56 am
- Forum: General
- Topic: PIC18F67K40 UART Send String
- Replies: 13
- Views: 6540
Re: PIC18F67K40 UART Send String
That would be very odd - SendNumber just converts the number to a string then uses SendString....
Can you post your code?
Martin
Can you post your code?
Martin
- Mon Mar 22, 2021 8:57 am
- Forum: General
- Topic: Help project will not open
- Replies: 6
- Views: 3433
Re: Help project will not open
Might need to rename the 01 file (delete the .01)
Would be good to have 'git' integration in FC - although it does work with manual updates...
Interested to know if anything was 'missing' from the recovered file?
Martin
Would be good to have 'git' integration in FC - although it does work with manual updates...
Interested to know if anything was 'missing' from the recovered file?
Martin
- Mon Mar 22, 2021 7:07 am
- Forum: General
- Topic: Help project will not open
- Replies: 6
- Views: 3433
Re: Help project will not open
Try -
Note that FC makes a backup (file.01) which can sometimes save your bacon...
Martin
Not sure what had gone awry - it would open in FC8 -- resaved and then reloaded in v9. Something odd though - it's quite a bit smaller file?Note that FC makes a backup (file.01) which can sometimes save your bacon...
Martin
- Thu Mar 18, 2021 6:50 pm
- Forum: General
- Topic: Serial port communication
- Replies: 13
- Views: 7444
Re: Serial port communication
Thanks - that's interesting... I'd seen some of the posts about CuteCom (linked in the post)... Wish I hadn't spent so much time on it now - seems it really doesn't work.. It's odd though - there are many posts claiming it works too! I'm going to stick with my initial Python pseudo flow control - wh...