Search found 943 matches

by mnfisher
Sun Aug 22, 2021 10:47 pm
Forum: Projects - Embedded
Topic: Arduino Nano Self Programmer.
Replies: 6
Views: 4576

Re: Arduino Nano Self Programmer.

Thanks -

I think he sleeps like a baby (still)...

My first go with canva - which is very cool but needs a good broadband connection :-(

Martin
by mnfisher
Sun Aug 22, 2021 9:52 pm
Forum: Projects - Embedded
Topic: Arduino Nano Self Programmer.
Replies: 6
Views: 4576

Arduino Nano Self Programmer.

Uploaded a short video - the Programmer's Apprentice. https://youtu.be/DRXwuKgs0p8 (should appear at approx 10:30pm at current upload speed - now live - rather less delays than the latest Bond!) In it an Arduino Nano actually writes a program and reprograms itself (to a 1s blinkie) I went a bit over...
by mnfisher
Tue Aug 17, 2021 6:09 am
Forum: General
Topic: Programing invidual Arduino ports I/O pins
Replies: 2
Views: 1663

Re: Programing invidual Arduino ports I/O pins

Hi RolGiv, There are several ways to do what you want. You can use input and output macros. You can add properties (ie d0 single digital pin) then use a calculation block x= d0 (input) d0 = 1 You can set the direction registers using a C block DDRD = 0b11111000; Then set or read multiple or single p...
by mnfisher
Tue Aug 10, 2021 8:07 am
Forum: General
Topic: Components!
Replies: 4
Views: 2487

Re: Components!

Hi, I did indeed do a component - works well for some displays but needs converting to transaction comms. I suspect there might be some timing issues when using different mcus. Needs the font code pulling in as well.... If folk want font support But, it does work well and quick too... Ben - I'll pm ...
by mnfisher
Thu Aug 05, 2021 8:03 am
Forum: General
Topic: Learn Flowcode
Replies: 0
Views: 2251

Learn Flowcode

There is a new series on Flowcode and a discount in this month's Practical E!electronics magazine (out today)

Looks good.

Martin
by mnfisher
Sun Jul 18, 2021 12:01 pm
Forum: Feature Requests
Topic: User software database
Replies: 8
Views: 4528

Re: User software database

There is a simple clock project here : https://matrixtsl.com/mmforums/viewtopi ... ock#p85887 - plenty of scope for improvement, but minimal parts..

Martin
by mnfisher
Tue Jul 13, 2021 8:31 pm
Forum: General
Topic: BQ27441 - Incorrect data being returned
Replies: 3
Views: 2308

Re: BQ27441 - Incorrect data being returned

One thought - the data sheet specifies a 66 microsecond delay and your listing above shows 66 milliseconds - probably just a typo in the debug output however? Sparkfun have: uint16_t BQ27441::readControlWord(uint16_t function) { uint8_t subCommandMSB = (function >> 8); uint8_t subCommandLSB = (funct...
by mnfisher
Tue Jul 13, 2021 12:54 pm
Forum: Bug Reports
Topic: Array initialisation - simulation gotcha
Replies: 2
Views: 1838

Array initialisation - simulation gotcha

I notice an oddity in array initialisation in simulation. Say I have an array x[5] of byte initialised to {0,1,2,3,4} - this works correctly at runtime (on MCU) and in simulation. However if I use hex: x[5] initial value {0x01, 0x02, 0x03, 0x04, 0x05} In simulation this acts as {0,0,0,0,0}. (Only he...
by mnfisher
Sat Jun 26, 2021 1:40 pm
Forum: General
Topic: how Make table byte
Replies: 3
Views: 2220

Re: how Make table byte

Hi Vatel20,

You can also initialize the array in FC v9

Put Table[5] when creating variable and
{10,20,30,40,50} in the initial value box...

Martin
by mnfisher
Wed Jun 23, 2021 12:48 am
Forum: General
Topic: Interrupt with Timer Question.
Replies: 3
Views: 2237

Re: Interrupt with Timer Question.

Hi,

Transmitting via uart requires some timing - and may well involve other interrupts. Keep the interrupt service routine as short as possible (this is true when using any language - not just for flowcode) - you'll save a lot of difficulty and debugging time too

Martin