Search found 11 matches
- Mon Apr 05, 2021 9:19 am
- Forum: Bug Reports
- Topic: Build-in Function Storage Ulong to float
- Replies: 1
- Views: 3078
Build-in Function Storage Ulong to float
Hello, i am using the Build-in function "StorageUlongToFloat" to get a float value out of an Ulong (eg 0x41D9E7FF). Then i convert this float to a string. If i simulate this, everything works fine. But in real live, this function delivers a 0.000000 as a result. Would anyone be so kind to check this...
- Thu Nov 12, 2020 8:58 pm
- Forum: Flowcode V8
- Topic: CAN Bus Extended ID
- Replies: 9
- Views: 3642
Re: CAN Bus Extended ID
Hi, i have to reactivate this post... What i figured out - If i use the component macro to set the extended CAN ID (SetTxIdent) for a CAN Bus transmission the transmission works but with a lot of bit errors (stuffing error, TX errors). I used C Code to proramm the extended TX ID directly into the re...
- Thu Oct 22, 2020 3:52 pm
- Forum: Bug Reports
- Topic: PIC18F2685 CAN with wrong BAUD Rate
- Replies: 6
- Views: 4361
Re: PIC18F2685 CAN with wrong BAUD Rate
Hi again, to bring this post to an end... I calculated the CAN timing with a BIT calculator and wrote this values directly into the BRGCON register after the initialization icon for the CAN component, so my own values override the flowcode values. And this works with a clock frequency of 4MHz and a ...
- Thu Oct 22, 2020 9:21 am
- Forum: Bug Reports
- Topic: PIC18F2685 CAN with wrong BAUD Rate
- Replies: 6
- Views: 4361
Re: PIC18F2685 CAN with wrong BAUD Rate
Hi, i tried your idea to enable PLL and this sets the internal frequency to 16MHz. The strange thing is that despite the fact that i still have set 125kBaud in the CAN properties this gives me now a CAN frequency of 400kHz, so exactly 4 times the frequency i have without enabling PLL. Because datatr...
- Tue Oct 20, 2020 12:45 pm
- Forum: Bug Reports
- Topic: PIC18F2685 CAN with wrong BAUD Rate
- Replies: 6
- Views: 4361
Re: PIC18F2685 CAN with wrong BAUD Rate
Hi, i can try a higher clock frequency. However, i have a running project with this PIC and a 4Mhz crystal and i used 50kHz. 50kHz is not available in the properties setting so i took the first available, which is 125kHz. According to several timing calculators 125kHz should work with this clock fre...
- Thu Oct 15, 2020 6:40 am
- Forum: Bug Reports
- Topic: PIC18F2685 CAN with wrong BAUD Rate
- Replies: 6
- Views: 4361
PIC18F2685 CAN with wrong BAUD Rate
Hi, i have two circuits with PIC18F2685 communicating via CAN. Both PICs work with a 4MHz crystal. The PICs have internal CAN controllers. As a transceiver i use the TJA1050. In the CAN component properties i configured the internal use and a BAUD rate of 125KBaud. The circuit works fine, one circui...
- Mon Sep 28, 2020 10:44 am
- Forum: Flowcode V8
- Topic: CAN Bus Extended ID
- Replies: 9
- Views: 3642
Re: CAN Bus Extended ID
Hi, yes, its definitely better to use an interrupt. At the time of my last post i didn`t know, how to get an CAN RX Interrupt to run (there is no predefined interrupt for CAN). Since then i learned how to create customer interrupts and with the help of the datasheet and some hints from this forum i ...
- Sun Sep 27, 2020 9:24 am
- Forum: Flowcode V8
- Topic: CAN Bus Extended ID
- Replies: 9
- Views: 3642
Re: CAN Bus Extended ID
Hi QMESAR, i changed the Receiver Testprogramm and used a TIMER0 Interrupt (about 8ms) to check for a new CAN Message in Buffer0. I still use only Buffer0 and whatever i did - it works with Extended ID. On the Transmitter side i send a message every 50ms, i changed this intervall to 1s and it works....
- Sun Sep 20, 2020 7:42 pm
- Forum: Flowcode V8
- Topic: CAN Bus Extended ID
- Replies: 9
- Views: 3642
Re: CAN Bus Extended ID
Hi QMESAR,
thanks a lot for your ideas and suggestions. I will try all this when at home but this will take a week or two... . I will then post the result.
Thanks again
maridd
thanks a lot for your ideas and suggestions. I will try all this when at home but this will take a week or two... . I will then post the result.
Thanks again
maridd
- Fri Sep 18, 2020 6:55 pm
- Forum: Flowcode V8
- Topic: CAN Bus Extended ID
- Replies: 9
- Views: 3642
Re: CAN Bus Extended ID
Hi, sorry for the imcomplete information (is my first post ever...). I am new to Flowcode so i try to figure out how things work with Flowcode. Its just ja testcircuit for me to learn programming a canbus with Flowcode. I declared the variables as ULONG, this is given in the macro for canbus (as far...
- Fri Sep 18, 2020 5:38 pm
- Forum: Flowcode V8
- Topic: CAN Bus Extended ID
- Replies: 9
- Views: 3642
CAN Bus Extended ID
Hi, i connected two boards via CAN Bus, both boards have a PIC18F2685 and a CAN Transceiver. Everything works fine if i send IDs up to 2047 (standard ID). But i want to use extended IDs. In the properties for the CAN Module i selected "standard & extended". Both boards run with 125kb/s. As soon i us...