Search found 28 matches

by bradsprojects
Mon May 28, 2018 12:56 am
Forum: Compiler
Topic: Issues trying to use the Memory Access module (SOLVED)
Replies: 10
Views: 8697

Re: Issues trying to use the Memory Access module to read da

Glad to hear i'm not the only one getting excited about nerdy rulers - however I too have a life - although my wife just looks at it and sees a bunch of red lights on a ruler... I should have mentioned - I used the second method that you posted. Of the two methods it made more sense to me to access ...
by bradsprojects
Sun May 27, 2018 8:01 pm
Forum: Compiler
Topic: Issues trying to use the Memory Access module (SOLVED)
Replies: 10
Views: 8697

Re: Issues trying to use the Memory Access module to read da

Jerry - that worked an absolute treat! I tried it with all eight blocks of 256 bytes, it was able to copy the data over and then restore it without any hassles. A huge thanks for your assistance with this. The project I am working on is called the Digirule2, which is an 8-bit programmable binary com...
by bradsprojects
Sun May 27, 2018 7:38 pm
Forum: Compiler
Topic: Issues trying to use the Memory Access module (SOLVED)
Replies: 10
Views: 8697

Re: Issues trying to use the Memory Access module to read da

Sorry for the late reply - i've just woken up :)

I really appreciate the time you've put in to helping me out with this Jerry - i'll give it a try now and report back.
by bradsprojects
Sun May 27, 2018 10:29 am
Forum: Compiler
Topic: Issues trying to use the Memory Access module (SOLVED)
Replies: 10
Views: 8697

Re: Issues trying to use the Memory Access module to read da

Hi Jerry, I tentatively chose $1300 because my code finishes up at around $1000. The device I am using is an 18F43K20, basically I am looking to be able to store data in 256 byte blocks and then be able to recall them even when power has been removed. The reason for not using EEPROM is that I need e...
by bradsprojects
Sun May 27, 2018 8:22 am
Forum: Compiler
Topic: Issues trying to use the Memory Access module (SOLVED)
Replies: 10
Views: 8697

Re: Issues trying to use the Memory Access module to read da

Thanks for the link, i'll have a good read through although I'll just ask a quick question - is that stored in program memory?

All up I will need 2kbytes for all the data I will be storing (8 blocks of 256bytes)
by bradsprojects
Sun May 27, 2018 5:15 am
Forum: Compiler
Topic: Issues trying to use the Memory Access module (SOLVED)
Replies: 10
Views: 8697

Issues trying to use the Memory Access module (SOLVED)

Hi everyone, I'm working on a project where I would like to be able to store some information (in 256 byte blocks) into program memory, and then be able to recall this data later on. I have been experimenting with the MemoryAccess.bas module to achieve this goal. It seems to write to program memory ...
by bradsprojects
Tue Oct 31, 2017 11:25 am
Forum: Compiler
Topic: Reading the fixed voltage reference
Replies: 2
Views: 2681

Re: Reading the fixed voltage reference

Thanks for the detailed reply Jerry. Now that you mention it, the datasheet did mention having a specific delay when reading FVR - i'll have to double check the specifics. That makes sense about the inverse relationship - i'll run through some experiments to see the relationship. Thank you again Jer...
by bradsprojects
Mon Oct 30, 2017 9:38 pm
Forum: Compiler
Topic: Reading the fixed voltage reference
Replies: 2
Views: 2681

Reading the fixed voltage reference

Hi everyone, I have been trying to read the fixed voltage reference value on a PIC18F46K22 microcontroller. I have set the positive reference to Vdd and the negative reference to Vss. The FVR channel is 11111 on the 18f46k22 however it would seem that I can't simply plug this number into the ADC.Rea...
by bradsprojects
Sun Apr 12, 2015 11:06 pm
Forum: Compiler
Topic: Problems with ADC on PORTC.6 and PORTC.7
Replies: 2
Views: 1831

Re: Problems with ADC on PORTC.6 and PORTC.7

Thank you Jerry, that fixed it up.

I didn't even think at looking at the ADC library, perhaps if I did I would have spotted the problem!
by bradsprojects
Sun Apr 12, 2015 11:37 am
Forum: Compiler
Topic: Problems with ADC on PORTC.6 and PORTC.7
Replies: 2
Views: 1831

Problems with ADC on PORTC.6 and PORTC.7

Hi everyone. I have been trying to figure this one out for a while now and searches on the forum have not provided an help unfortunately. Basically I am using a PIC18F26K22 microcontroller and am using four of the ADC pins, namely: PORTA.5 = ADC.4 PORTC.2 = ADC.14 PORTC.6 = ADC.18 PORTC.7 = ADC.19 N...
by bradsprojects
Thu May 22, 2014 2:02 pm
Forum: Compiler
Topic: i2c problems with a PIC18F26K22
Replies: 4
Views: 3300

Re: i2c problems with a PIC18F26K22

Thanks for your help Jerry. I was so focused on looking into my problem in one particular area that I didn't even bother to think of something as straight forward as that! I changed the settings in the ANSELC register to ensure RC3 and RC4 were set to digital and all is working now! Just for info, i...
by bradsprojects
Wed May 21, 2014 2:03 pm
Forum: Compiler
Topic: i2c problems with a PIC18F26K22
Replies: 4
Views: 3300

Re: i2c problems with a PIC18F26K22

Thanks David, I tried using individual bytes and checking their contents but still no dice. It doesn't matter what variable I declare, it will just not store any data in them. It is really boggling my mind at the moment! I can even update the contents of the various 'configuration' registers within ...
by bradsprojects
Wed May 21, 2014 1:38 pm
Forum: Compiler
Topic: i2c problems with a PIC18F26K22
Replies: 4
Views: 3300

i2c problems with a PIC18F26K22

Hi everyone. I have been working on a little project that uses a texas instruments ina220 power measuring chip that interfaces to my 18f26k22 microcontroller by i2c. The first of my problems is that the standard i2c library will not work for me at all. For example here's some code that talks to the ...
by bradsprojects
Sun Mar 02, 2014 11:11 pm
Forum: Compiler
Topic: Code won't compile when I save the uC file somewhere else.
Replies: 5
Views: 2875

Re: Code won't compile when I save the uC file somewhere els

Yep, that did it! I guess the thing that was throwing me was that (in my experience) when you install a program in windows, it ends up in the program files folder. So I went into there and sure enough, there was swordfish (and swordfishSE) so I was focusing on the files within there the whole time a...
by bradsprojects
Sun Mar 02, 2014 11:06 pm
Forum: Compiler
Topic: Is it possible to download the full version of Swordfish?
Replies: 10
Views: 4927

Re: Is it possible to download the full version of Swordfish

I think I see what must be happening, since it is looking for a generic setup filename, anything with that name could be launched. So I guess it is perhaps finding one of my VB install files and launching that instead. I'll have to come back to this problem in a little bit - For now I have windows 8...