Search found 132 matches
- Wed Apr 05, 2023 8:45 pm
- Forum: General
- Topic: Migration to Pi Pico & CAN
- Replies: 9
- Views: 1058
Re: Migration to Pi Pico & CAN
HI, So found the PICO toolchain link in the WIKI and the PDF. Installed all of the listed programs and the settings as requested. There were a few differences in the install file to those shown but it looked to install each program correctly. FC10 installed and activated. Pico connected in bootload ...
- Sun Apr 02, 2023 2:22 pm
- Forum: General
- Topic: Migration to Pi Pico & CAN
- Replies: 9
- Views: 1058
Migration to Pi Pico & CAN
Hi, I've been using ECIO's, MIACs, PIC18F and dsPIC for almost all of my projects since starting with FC back in 2009. With global chip shortages and discontinued products these are currently not a suitable basis for new projects. I really like the ECIO style of stand alone brick and so I have chose...
- Tue Oct 25, 2022 10:37 am
- Forum: General
- Topic: SPI and I2C using same pins.
- Replies: 1
- Views: 446
Re: SPI and I2C using same pins.
I just had a quick try with the I2C being bitbanged and repurposed a pin that was an unused LED. With this as Clock the i2C seems to work fine. So maybe this is the easiest solution all round. By retaining i2C dat on the MISO pin...is this likely to casue issues? Would it better all round to just mo...
- Tue Oct 25, 2022 10:08 am
- Forum: General
- Topic: SPI and I2C using same pins.
- Replies: 1
- Views: 446
SPI and I2C using same pins.
Hi, Using a PIC18F2585. The project is getting quite bust forthe little PIC, UART, CAN, i2C and SPI (MOSI only). Where possible i tend to use hardware periferals as I assume this is more robust/efficient for the PIC than bitbanging. The i2C and SPI only share a common clock Pin. The SPI is to a disp...
- Sat Oct 22, 2022 5:56 pm
- Forum: General
- Topic: Defining or Returning Byte Arrays in User Macros
- Replies: 1
- Views: 498
Defining or Returning Byte Arrays in User Macros
Hi, I have i2C read and write macro's . However I dont always want just a single return byte, I might be reading back anything from 1 to 6 bytes. I see I can Return Strings, Longs, Integers. Can I return a Byte Array from a user Macro? For the write macro, whilst I can create a parameter Byte Array ...
- Thu Jul 21, 2022 11:08 am
- Forum: General
- Topic: gLCD 4D Picaso - Display Image.
- Replies: 0
- Views: 1404
gLCD 4D Picaso - Display Image.
Hi, I've been try to get an image displayed on a 4D picaso gLCD ( uLCD 32PTU ) I have used the 4D tools to create the .GCI and .Dat files. and load them onto the FAT formatted SD card. But I'm unsure of the FC commands. For the offsets I just refered to the text of the .Dat file. For simplicity the ...
- Wed Jul 13, 2022 3:13 pm
- Forum: General
- Topic: CAN Component - Buffer
- Replies: 20
- Views: 4791
Re: CAN Component - Buffer
Hi, I've played with lots of different combinations. The command from the RXcheck routine that make the difference is.. RXB0CONbits.RXFUL = 0; // Clear Buffer0 Full Flag What is really odd to me. If I place this or similar at the end of the Interrupt handler it makes no difference. If I place it as ...
- Tue Jul 12, 2022 9:19 am
- Forum: General
- Topic: CAN Component - Buffer
- Replies: 20
- Views: 4791
Re: CAN Component - Buffer
Just checked last nights work. The CAN interrupt will only run if CheckRx is placed in the main loop. If the main loop is slowed down by a 500ms Delay, the interrupt will only run at this rate. So I am fairly sure Check Rx is toggling some bit thus activating or deactivating a larger part of the CAN...
- Mon Jul 11, 2022 8:12 pm
- Forum: General
- Topic: CAN Component - Buffer
- Replies: 20
- Views: 4791
Re: CAN Component - Buffer
Ah... I may have missunderstood.
If I place the CheckRx macro in the main, then the interupt will run.
I assumed it would have to be in the Interrupt routine.
Does this make sense that it works with the CheckRx macro in the main loop?
J.
If I place the CheckRx macro in the main, then the interupt will run.
I assumed it would have to be in the Interrupt routine.
Does this make sense that it works with the CheckRx macro in the main loop?
J.
- Mon Jul 11, 2022 3:36 pm
- Forum: General
- Topic: CAN Component - Buffer
- Replies: 20
- Views: 4791
Re: CAN Component - Buffer
I assume
ts_Bit = test Bit.
st_Bit = Set bit
cr=Bit = Clear bit
and these are little macros dinfined in the compiler or FC ?
ts_Bit = test Bit.
st_Bit = Set bit
cr=Bit = Clear bit
and these are little macros dinfined in the compiler or FC ?