Search found 95 matches

by mytekcontrols
Sun Jan 05, 2020 11:21 pm
Forum: General Programming
Topic: Converting from FLOWcode to C code
Replies: 8
Views: 691

Re: Converting from FLOWcode to C code

Look like some interesting kit... Seen details of PokeyOne - nickname of a bedsit I stayed in for a while... Yeah the journey began back in mid 2015, when I kind of got sucked back into the retro 8-bit computing scene. At first it was just an opportunity to create a re-imagined version of something...
by mytekcontrols
Sat Jan 04, 2020 1:33 am
Forum: General Programming
Topic: Converting from FLOWcode to C code
Replies: 8
Views: 691

Re: Converting from FLOWcode to C code

Yeah a PIC with more pins certainly would have made things easy. Except this is an established design that is already built into many other projects, all based on the PIC16F1847 chip. Take a look HERE to see what I'm talking about. The problems I ran into could definitely be a timing issue, and/or R...
by mytekcontrols
Fri Jan 03, 2020 5:21 pm
Forum: General Programming
Topic: Converting from FLOWcode to C code
Replies: 8
Views: 691

Re: Converting from FLOWcode to C code

Streamlined the last part of the macro. Now only uses one decision block to determine if the clock bit (Pclk) is low before proceeding with any changes related to the high bit (Pbit5 - changed name from Ptmp). https://atariage.com/forums/uploads/monthly_2020_01/POKEYcntr.JPG.16ba2d8db08aca223cb6f41d...
by mytekcontrols
Fri Jan 03, 2020 3:31 pm
Forum: General Programming
Topic: Converting from FLOWcode to C code
Replies: 8
Views: 691

Re: Converting from FLOWcode to C code

Hi Martin, I tried your C code, and although it compiled just fine (after I added a semi-colon at the end), when the application was run it was once again very erratic. What was the erratic nature I was seeing? Dropped keys and/or wrong character would be seen on screen. A little background The appl...
by mytekcontrols
Fri Jan 03, 2020 4:58 am
Forum: General Programming
Topic: Converting from FLOWcode to C code
Replies: 8
Views: 691

Re: Converting from FLOWcode to C code

I figured out how to do a read of a single port bit in a C Code Block, saving that value into a FlowCode variable. Not sure if what I did is the most efficient way to code it, but it works! Link to screenshot of POKEYcntr2. if (test_bit(porta, 0)) { //RA0 Set FCV_PCLK = 1; } else { //RA0 Clear FCV_P...
by mytekcontrols
Thu Jan 02, 2020 9:29 pm
Forum: General Programming
Topic: Converting from FLOWcode to C code
Replies: 8
Views: 691

Converting from FLOWcode to C code

I have attached a FLOWcode V4.5 macro I call POKEYcntr that is called by a Timer2 interrupt at a 31,250Hz rate based on a PIC16F1847 running at 32Mhz. It's a macro that creates a shadow counter register which is synced to a real 6-bit key scan counter. The routine looks at the lowest and highest bit...
by mytekcontrols
Tue Oct 24, 2017 11:55 pm
Forum: Flowcode V4
Topic: Creating/modifying FCD files to support new chips
Replies: 3
Views: 3566

Re: Creating/modifying FCD files to support new chips

Thanks for checking that out. Too bad, but I guess I could always take the assembler output, tweak it to look like a PIC12F1571 and then run that through MPASM. I just don't feel like redoing my flowcode in a different language or upgrading beyond where i am at.

Thanks again,
Michael
by mytekcontrols
Mon Oct 23, 2017 8:31 pm
Forum: Flowcode V4
Topic: Creating/modifying FCD files to support new chips
Replies: 3
Views: 3566

Creating/modifying FCD files to support new chips

Ok here's the dilemma I'm faced with... I'm using the last revision of Flowcode V4 (v4.5.18.74) and find myself missing an FCD file for a PIC12F1571 which I would like to use for a project. However I did notice that there is an FCD for a PIC12F675 which has a lot of similar stuff, but obviously miss...
by mytekcontrols
Thu Jun 30, 2016 6:51 pm
Forum: Flowcode V4
Topic: PIC16F1847.fcd PORTB on change IRQ parameters are wrong
Replies: 6
Views: 6538

Re: PIC16F1847.fcd PORTB on change IRQ parameters are wrong

Ok I got it working with my flowcode program. At first I kept getting constant interrupts even without changing anything on the PortB input that I had setup as my interrupt-on-change pin (bit 2). But then I remembered seeing something about a register for independent flags representing each pin, whi...
by mytekcontrols
Wed Jun 29, 2016 5:03 pm
Forum: Flowcode V4
Topic: PIC16F1847.fcd PORTB on change IRQ parameters are wrong
Replies: 6
Views: 6538

Re: PIC16F1847.fcd PORTB on change IRQ parameters are wrong

Hi Ben, I implemented your latest changes and my program compiled without even a hiccup. So now I'll just need to set up a flowchart to run a complete test. Basically what I am doing is adding a 2nd PS2 keyboard to an existing program that already deciphers one by utilizing the INT0 interrupt (RB0=P...
by mytekcontrols
Tue Jun 28, 2016 6:12 pm
Forum: Flowcode V4
Topic: PIC16F1847.fcd PORTB on change IRQ parameters are wrong
Replies: 6
Views: 6538

Re: PIC16F1847.fcd PORTB on change IRQ parameters are wrong

Hi Ben, Thank you for taking the time to try to help me with this problem :) I made the changes you suggested, and we are probably getting close, but I think there are some definitions that need to be added to the 1847.fcd to fully implement it. Here's what I get when trying to compile after the cha...
by mytekcontrols
Thu Jun 23, 2016 7:38 pm
Forum: Flowcode V4
Topic: PIC16F1847.fcd PORTB on change IRQ parameters are wrong
Replies: 6
Views: 6538

PIC16F1847.fcd PORTB on change IRQ parameters are wrong

I'm trying to use the PortB on change interrupt and got the following errors when compiling... TK-II-OS_V1_6.c(540:23): error: unknown identifier 'RBIE' TK-II-OS_V1_6.c(540:23): error: invalid operand 'RBIE' TK-II-OS_V1_6.c(540:18): error: failed to generate expression TK-II-OS_V1_6.c(540:18): error...
by mytekcontrols
Thu Jun 23, 2016 7:07 pm
Forum: General Programming
Topic: FlowCode Version Converter and Viewer
Replies: 3
Views: 3133

Re: FlowCode Version Converter and Viewer

Bump Bump...

It would be nice to get some feedback from someone at Matrix on this topic :wink:

- Michael
by mytekcontrols
Thu Jun 16, 2016 7:39 pm
Forum: General Programming
Topic: FlowCode Version Converter and Viewer
Replies: 3
Views: 3133

Re: FlowCode Version Converter and Viewer

Thanks Pete :) I would like to add that the viewer aspect is the most important aspect of my request. Conversion would probably be very difficult if not near impossible if you tried to span too many versions due to additional functions that got added along the way. But with a viewer that would work ...
by mytekcontrols
Wed Jun 15, 2016 9:52 pm
Forum: General Programming
Topic: FlowCode Version Converter and Viewer
Replies: 3
Views: 3133

FlowCode Version Converter and Viewer

You know how you see all those image viewers on the web, many of which can convert from one format to the other (i.e., jpg to png). I was thinking it would be great to have a lightweight FlowCode Viewer App that could not only view a FlowCode program no matter what revision level it was (V1-V6). But...
by mytekcontrols
Tue Aug 11, 2015 10:07 pm
Forum: General Programming
Topic: Latest Configuration files
Replies: 10
Views: 4830

Re: Latest Configuration files

Benj it worked like a charm :D

Thank you ever so much.

Michael
by mytekcontrols
Tue Aug 11, 2015 12:24 am
Forum: General Programming
Topic: Latest Configuration files
Replies: 10
Views: 4830

Re: Latest Configuration files

Benj you linked to an updated PPP zipped file that appeared to fix the PIC16F1847 configuration problem. I am running Flowcode v4.5.18.74 and was not able to use this chip (the chip configuration would not match the chip number that had been set in the Project Options). So needing to use this chip, ...
by mytekcontrols
Mon Jun 14, 2010 2:22 am
Forum: Flowcode 4 Suggestions
Topic: write to flash component
Replies: 28
Views: 14617

Re: write to flash component

After taking a long hard look at my current project, I decided that I can make due with the available space in the internal 256 byte EEPROM. Because this is much easier to implement within FlowCode, I have opted to fore go the use of Flash memory for my data storage. So for the time being, I will no...
by mytekcontrols
Thu Jun 10, 2010 3:14 pm
Forum: Flowcode 4 Suggestions
Topic: write to flash component
Replies: 28
Views: 14617

Re: write to flash component

1-With the benj method, is it possible to write just one byte at one adress? Yes 2-If yes, is it possible to write if the content is anything else than FF? Yes, in my program I was writing the time/date-stamped status of 4 switches into sequential flash memory cells. So in essence each time a switc...
by mytekcontrols
Wed Jun 09, 2010 3:12 am
Forum: Flowcode 4 Suggestions
Topic: write to flash component
Replies: 28
Views: 14617

Re: write to flash component

Thanks benp, I'll keep that in mind. However I've been thinking more about why Benj's simple 2 line BoostC examples seemed to fail. Keep in mind that these worked perfectly for me until I reset my ECIO-40P, either with the reset button or by powering down, and then back up. Unlike a normal PIC, the ...
by mytekcontrols
Mon Jun 07, 2010 11:59 pm
Forum: Flowcode 4 Suggestions
Topic: write to flash component
Replies: 28
Views: 14617

Re: write to flash component

I will have a bit of a dig and see if I can find out why the current solution is not remaining after a reset. Sounds good Benj. I'll hold off for a bit on substituting the assembly version, to give you some time to perhaps come up with a working BoostC version. BTW where did you get your BoostC cod...
by mytekcontrols
Sat Jun 05, 2010 3:16 pm
Forum: Flowcode 4 Suggestions
Topic: write to flash component
Replies: 28
Views: 14617

Re: write to flash component

For my next test, I decided to also see if the Read-from-Flash example that Benj used was actually working properly. C Code -- Read from Flash volatile char* register_ptr = (char*)FCV_ADDR; FCV_TEMP = *register_ptr; So I wrote this simple FlowCode program to test it: ReadFlash.gif EEPROMconfig.gif N...
by mytekcontrols
Thu Jun 03, 2010 5:47 pm
Forum: Flowcode 4 Suggestions
Topic: write to flash component
Replies: 28
Views: 14617

Re: write to flash component

It is important to know what the boostC macro do exactly because you must take care not to overwrite on flash. Only 100 000 cycles are permitted. Yes I totally agree on having a good understanding of the macros involved and how they work. Although for my application, 100,000 write cycles is way mor...
by mytekcontrols
Thu Jun 03, 2010 3:06 pm
Forum: Flowcode 4 Suggestions
Topic: write to flash component
Replies: 28
Views: 14617

Re: write to flash component

I've been Googling for some examples of using BoostC to Read, Write, and Erase flash memory in a PIC18F series chip, and haven't had much luck (just keep finding references to PIC16F examples). Does anyone know where I can find specific information for utilizing BoostC for these functions as they re...
by mytekcontrols
Wed Jun 02, 2010 2:40 pm
Forum: Flowcode 4 Suggestions
Topic: write to flash component
Replies: 28
Views: 14617

Re: write to flash component

Hi benj, Well to eliminate any doubt that my program was inadvertently messing something up after reset, I wrote a very very simple FlowCode program to write a single byte (0x55) into a single location (0x5000). I then compiled this to chip via FlowCode, and let it run. Then I ran the ECIOprog.exe f...