Search found 630 matches

by chipfryer27
Sat Jan 13, 2024 8:44 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi No, it is totally free and will work both in simulation and hardware without time limit. Included are certain chips, but you may need to purchase "chip packs" if the free options don't meet your needs. Do note that although "free", if you intend to sell or otherwise commercialise your code then y...
by chipfryer27
Sat Jan 13, 2024 3:56 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi I'll reply in more detail later, but regarding FC v10 this link will explain things further https://www.flowcode.co.uk/ All components are now free as are certain chips, and I believe there is a discount too for existing users, but you would be best to contact Matrix directly for specifics. Regards
by chipfryer27
Sat Jan 13, 2024 9:58 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi In the pervious chart I posted, the one using interrupt INT0 on the PIC1939, I changed the target to a Mega8, moved display to PortC and successfully compiled to Hex. This suggests a possible issue with the v8 Slave Component. Unfortunately as v8 is a bit old now it may no longer be officially su...
by chipfryer27
Sat Jan 13, 2024 9:47 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi I started to create a chart from scratch, testing as I went (saving to Hex). All went well until I used the SPI_GetChar component macro. This then failed to compile with C:\Users\user\AppData\Local\Temp/ccftAoPc.o: In function `__vector_1': v8_SPI.c:(.text.__vector_1+0x22): undefined reference to...
by chipfryer27
Fri Jan 12, 2024 9:13 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi I compiled to Hex and got different results. For me SPI_Slave_MEGA8_INT_v8.c:(.text.FCM_SPI_Slave+0x2): undefined reference to `FC_CAL_SPI_Slave_RxByte_1' SPI_Slave_MEGA8_INT_v8.c:(.text.FCM_SPI_Slave+0xc): undefined reference to `FC_CAL_SPI_Slave_TxByte_1' seem to be the problem. Not sure why th...
by chipfryer27
Wed Jan 10, 2024 8:01 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi When using any form of communications the receiver needs to know exactly when the incoming data is present. If we were to just rely on a loop for example, then how can we be sure it is looking at the correct time the data is present at the pin to say nothing of actual sampling? If that works then...
by chipfryer27
Tue Jan 09, 2024 3:10 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi Bit busy just now but later I'll explain circular buffer and uses, but my last post was written in v8 and if you look under Project Options it is for a Mega8. If that isn't your chip just change to suit (you may need to alter pins). However as you say, you can see the steps so can create from scr...
by chipfryer27
Mon Jan 08, 2024 10:44 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi

v8 example.
SPI_Slave_MEGA8_INT_v8.fcfx
(11.69 KiB) Downloaded 34 times

Regards
by chipfryer27
Mon Jan 08, 2024 10:29 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi I'm not sure why you seem to be trying to "reinvent the wheel". In the above posts I provided an example of a Master sending out data, and two examples of Slaves receiving. One Slave used SSP (a feature not all chips have) and the other used an Interrupt. The interrupt example should work on any ...
by chipfryer27
Sun Jan 07, 2024 10:47 pm
Forum: Flowcode V8
Topic: 3.5inch Arduino Display ILI9486
Replies: 3
Views: 68289

Re: 3.5inch Arduino Display ILI9486

Hi

Again a quick search suggests that the following drivers are compatible, differences being screen size or bus:-

HX8369 / ILI9488 / ILI9806 / ILI9327

The ILI9488 component is available for 8 / 16 pin parallel so perhaps try that? You will need to experiment regarding max screen size etc.

Regards
by chipfryer27
Sun Jan 07, 2024 1:54 pm
Forum: Flowcode V8
Topic: 3.5inch Arduino Display ILI9486
Replies: 3
Views: 68289

Re: 3.5inch Arduino Display ILI9486

Hi

As v10 doesn't feature a ILI9486 display I doubt v8 would either. However from a quick search it seems the ST7796 driver is very similar so you may be able to use a component based on that instead.

Regards
by chipfryer27
Fri Jan 05, 2024 4:41 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi Based on the WiKi examples, but chips changed to PIC16F1939. Created a Master chart which simply counts from 0-255 sending out the value on the SPI. At the Slave end it receives the value, displays it on the LCD and "echoes" the value back out on the SPI. SPI_Master_1939.fcfx SPI_Slave_1939.fcfx ...
by chipfryer27
Thu Jan 04, 2024 6:41 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi I was in my Evil Lab today and created a circuit in hardware with one uC acting as a Master and another uC acting as a Slave, based on the WiKi examples. My charts however use PIC16F1939 as the uC, simply because they are already in my programmer boards. The Master simply counts up and transmits ...
by chipfryer27
Tue Jan 02, 2024 11:14 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi As for your question, am I going to receive data from the slave device - in principle, no, I just need to write variables to the slave controller so that the program then works according to these variables Okay, then SPI is a good way to do it. However I think it would be good for you to define t...
by chipfryer27
Tue Jan 02, 2024 12:16 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi he probably would have called the exorcist monks... Hahahaha SPI can be a very fast communications protocol ideal for relatively short distances. However the protocol does stipulate a Master / Slave(s) relationship in that there is only one Master and it controls ALL communications. If you have a...
by chipfryer27
Sun Dec 31, 2023 12:40 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi With SPI there can only ever be one Master but as many slaves as you wish. Usually MOSI/MISO are connected to each slave with unique CS/SS pins that let each slave know it by itself is being addressed. MOSI is Master Out Slave In and is unidirectional from master to slave device MISO is Master In...
by chipfryer27
Sat Dec 30, 2023 8:56 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi And on the CS of the receiving controller, you need to apply "0" in any way-either connect to the minus circuit, or apply a logical 0 to the output, and after receiving, apply a logical 1. I tried both options. When a logical 0 was applied to the CS output and then 1 That sounds to me the descrip...
by chipfryer27
Fri Dec 29, 2023 5:22 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi

What is it exactly you want to achieve? Is it just to have two chips send bytes to each other, or are you intending to just read or write from one to another? Will the data be in the same format each time (e.g. a four byte array or string)?

Regards
by chipfryer27
Fri Dec 29, 2023 1:27 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi I created a simple chart to send a single value out on the SPI. Chart uses SPI Master component and has C5 = MOSI C4 = MISO C3 = Clock C2 = CS/SS Clock idles high and CS/SS is active low. The below shows the traces captured on a logic analyser set to trigger on CS falling edge. MOSI.jpg I'll crea...
by chipfryer27
Thu Dec 28, 2023 5:39 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi I think there is a misunderstanding in the use of Interrupts. It only needs to be enabled once, outside of your loop. Once enabled it will continue to call your Interrupt Service Routine (ISR) every time it is triggered, until you disable it. If for example you triggered on the falling edge of IN...
by chipfryer27
Tue Dec 26, 2023 11:48 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi Whilst your traces are helpful, what would be very helpful is to use both of your channels and post, along with more explicit details of what they are capturing. You mention when two "wizards" are connected they both send data from MISO pins. Being honest, I really have no idea of what your trace...
by chipfryer27
Mon Dec 25, 2023 11:19 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi Your two traces look as expected. However without any form of interrupt it will be practically impossible to capture any received byte as without such you are relying on nothing more than pure chance that something will be present when you look (including clock). If you do manage, can you please ...
by chipfryer27
Sun Dec 24, 2023 9:39 pm
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi

Merry Christmas to you too and a Happy New year when it arrives.

If you triggered on falling edge, then looked for incoming data you would have a reasonable chance of catching it especially if using an appropriate timeout value.

Have a good festive season.

Regards
by chipfryer27
Sat Dec 23, 2023 9:52 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi Following on from Viktor, I think you need to provide a little more information. We don't know what, if anything, you are connected to that transmits / receives your data. From looking at your chart it appears that after you initialise you enter a loop. In each iteration you enable an interrupt. ...
by chipfryer27
Wed Dec 20, 2023 10:07 am
Forum: Flowcode V8
Topic: some problems with spi data transmission
Replies: 140
Views: 7729091

Re: some problems with spi data transmission

Hi

If I haven't used a scope in a while it takes me more than a few minutes to refamiliarise myself with it. I actually have a few and as they are all different the fun knowns no beginning.....

When I'm next beside one I'll capture a transmission and post for comparison.

Regards