Electronics > Beginners
ASM to Arduino
(1/5) > >>
metrologist:
There are some analogues to the PICDIV for Arduino, but if I recall correctly, the code is in .asm files. How do I use these?
brucehoult:
You could try http://www.ulrich-bangert.de/PPSDividerMega8.zip

That simultaneously provides 8 outputs (a complete output port) with frequencies 100 kHz, 10 kHz, 1 kHz, 100 Hz, 10 Hz, 1 Hz, 0.1 Hz and 0.01 Hz assuming a 10 MHz input clock.
fsr:
I have taken a look at the PicDIV website, and it seems to be an assembler project for very high precision frequency division with pic devices. Doesn't seems to be a way to add that to another project, much less arduino (obviously). This will convert the pic device into a precision frequency divider, and that's it. If you need to do something else, you need another microcontroller (well, maybe in assembler you could stuff some other functionality there, but that would require analyzing the code and adding code to it, trying to avoid upsetting the divider, if at all possible).

.ASM is the source code for assembler.
.HEX is the file to upload to the microcontroller with a programmer.

I would expect the same to apply to the AVR version.
metrologist:

--- Quote from: fsr on January 16, 2019, 05:58:17 pm ---Doesn't seems to be a way to add that to another project, much less arduino (obviously).

--- End quote ---

There is an analog to picdiv, called ppsdiv and it is written for Arduino. From this site:

http://www.ulrich-bangert.de/html/downloads.html

http://www.ulrich-bangert.de/PPSDividerMega8.zip

There is a hex file in the zip package as well and maybe that can be burned to the chip. I've not done that either.
fsr:

--- Quote from: metrologist on January 16, 2019, 06:35:26 pm ---
--- Quote from: fsr on January 16, 2019, 05:58:17 pm ---Doesn't seems to be a way to add that to another project, much less arduino (obviously).

--- End quote ---

There is an analog to picdiv, called ppsdiv and it is written for Arduino. From this site:

http://www.ulrich-bangert.de/html/downloads.html

http://www.ulrich-bangert.de/PPSDividerMega8.zip

There is a hex file in the zip package as well and maybe that can be burned to the chip. I've not done that either.

--- End quote ---
Are you looking for something that you can load in the Arduino gui and use inside an Arduino sketch, or are you looking for anything that will run inside an AVR microcontroller? Those two are different requirements.
Navigation
Message Index
Next page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod