I can read successfully and it has been written. not sure how to compare it to input, since input is a IHX file, readout seems to do a HEX file or a BIN file.
.ihx and .hex are both file endings for Intel Hex. objcopy can be used to convert between Intel Hex and raw binary.
(In development branch of programmer software, examples folder: https://github.com/free-pdk/easy-pdk-programmer-software/tree/development/Examples/src)
JS
VDD (BG=1.2V) | GPCS.5 | GPCS.4 | GPCS.N |
1.60 | 0 | 0 | 15 |
1.67 | 0 | 0 | 14 |
1.75 | 0 | 0 | 13 |
1.80 | 0 | 1 | 15 |
1.83 | 0 | 0 | 12 |
1.92 | 0 | 1 | 14 |
1.92 | 0 | 0 | 11 |
2.00 | 1 | 0 | 15 |
2.02 | 0 | 0 | 10 |
2.06 | 0 | 1 | 13 |
2.09 | 1 | 0 | 14 |
2.13 | 0 | 0 | 9 |
2.18 | 1 | 0 | 13 |
2.22 | 0 | 1 | 12 |
2.26 | 0 | 0 | 8 |
2.29 | 1 | 0 | 12 |
2.40 | 0 | 0 | 7 |
2.40 | 0 | 1 | 11 |
2.40 | 1 | 0 | 11 |
2.40 | 1 | 1 | 15 |
2.53 | 1 | 0 | 10 |
2.56 | 0 | 0 | 6 |
2.56 | 1 | 1 | 14 |
2.62 | 0 | 1 | 10 |
2.67 | 1 | 0 | 9 |
2.74 | 0 | 0 | 5 |
2.74 | 1 | 1 | 13 |
2.82 | 1 | 0 | 8 |
2.88 | 0 | 1 | 9 |
2.95 | 0 | 0 | 4 |
2.95 | 1 | 1 | 12 |
3.00 | 1 | 0 | 7 |
3.20 | 0 | 0 | 3 |
3.20 | 0 | 1 | 8 |
3.20 | 1 | 1 | 11 |
3.20 | 1 | 0 | 6 |
3.43 | 1 | 0 | 5 |
3.49 | 0 | 0 | 2 |
3.49 | 1 | 1 | 10 |
3.60 | 0 | 1 | 7 |
3.69 | 1 | 0 | 4 |
3.84 | 0 | 0 | 1 |
3.84 | 1 | 1 | 9 |
4.00 | 1 | 0 | 3 |
4.11 | 0 | 1 | 6 |
4.27 | 0 | 0 | 0 |
4.27 | 1 | 1 | 8 |
4.36 | 1 | 0 | 2 |
4.80 | 0 | 1 | 5 |
4.80 | 1 | 0 | 1 |
4.80 | 1 | 1 | 7 |
5.33 | 1 | 0 | 0 |
5.49 | 1 | 1 | 6 |
5.76 | 0 | 1 | 4 |
6.40 | 1 | 1 | 5 |
7.20 | 0 | 1 | 3 |
7.68 | 1 | 1 | 4 |
9.60 | 0 | 1 | 2 |
9.60 | 1 | 1 | 3 |
12.80 | 1 | 1 | 2 |
14.40 | 0 | 1 | 1 |
19.20 | 1 | 1 | 1 |
28.80 | 0 | 1 | 0 |
38.40 | 1 | 1 | 0 |
I can read successfully and it has been written. not sure how to compare it to input, since input is a IHX file, readout seems to do a HEX file or a BIN file.
.ihx and .hex are both file endings for Intel Hex. objcopy can be used to convert between Intel Hex and raw binary.
I have attached my readout as well as the orginal example PM150 hello world (had to add txt per forum upload rules)
In hex editor they appear very different.
(In development branch of programmer software, examples folder: https://github.com/free-pdk/easy-pdk-programmer-software/tree/development/Examples/src)
JSI might be wrong, but isn't 2.5 LVR register value 0x80 instead of 0x70? I think I got 0x80, and that would make sense given the rest of the values are using only the three MSB of the MISCLVR register.
Sorry, I forgot to mention I was talking about the PFS154.
For a very low-power, which does not need perfect frequency accuracy, I'm trying to use ILRC and keep IHRC disabled. However I seem to be getting a frequency four times lower than expected on ILRC:Code: [Select]#include <pfs154.h>
I get a square wave with a duty cycle of 25%, but at 11.1KHz rather than the expected 54KHz than the datasheet suggests. Any idea why?
// From cpldcpu's SimPad repository
#define PDK_USE_FACTORY_TRIMMING() {__asm__ (".word (0x3fed)\nmov __ihrcr,a\n.word (0x3fee)\nmov __bgtr,a\n");}
unsigned char _sdcc_external_startup(void) {
PDK_USE_FACTORY_TRIMMING();
// Set clock to ILRC and disable IHRC
CLKMD = CLKMD_ENABLE_ILRC | CLKMD_ENABLE_IHRC | CLKMD_ILRC;
CLKMD &= ~CLKMD_ENABLE_IHRC;
return 0;
}
int main(void) {
// Set PA0 pin to output
PAC = 0b00000001;
while (1) {
__set1(PA, 0);
__set0(PA, 0);
}
}
I have tried with two different PFS154 to rule out a defect in a single device, and they both behave the same.
Hello ,
I hope that you can help me. I got to know the padauk uC from youtube quite a while ago. Recently I build the Free pdk Programmer from Github, but I have some starting issues. I got the firmware sucessfully flashed and have also probed successfully a PMS150C. My question is now what mikrocontrollers are supported by the time, bcause I think I read somewhere that I can only flash the PFS154 and PFS174.
easypdkprog list
to list the supported devices.And my last question is, if there is a tutorial or a list of the operations you can use when programming in c or mini-C?
I mean where do I find the specific comandos for setting up the uC. Thing like timer , interupts on coperator edge detections. Do I use the same aus discribed in the data sheet or do they vary a bit.
And the question for the programming of the PMS150C is more if I can generate the file for flashing or not?
I think I read somewhere in this post, that by now only the PFS154 and PFS174 are supported in the SDCC...
Therefor I want to know if I an use the .pdk Files from the padauk IDE. I think I read ... that ... I can only flash .hex files because the .pdk contain futher informations than only the code (something like calibration of the clock).
js_12345678_55AA you said tat the 13 bit padauks are supported, but on Github (https://github.com/free-pdk/sdcc-pdk-code-examples/blob/master/README) stands that it is still experimental.
Futhermore I installed sdcc yesterday and only the pdk14 and pdk15 where showes for lib installation.
Is there a way that I get the pdk13 lib, altthough it is still experimental.
The work you've done reverse-engineering and designing the programmer is very impressive . Is there a document describing the steps the programmer goes through to program the devices (e.g. set MCLR/Vpp=13V, VDD=6.5V, delay 100ms, etc.)?
Also, I was wondering if you've thought about using the PICKIT2 for programming the devices, as has a programmable Vpp/Vdd/etc. for programming PIC microcontrollers, and I get the feeling that the padauk chips are somewhat related. I've used the PICKIT2 for programming ATMEGA88 (set Vpp=Vdd=5V, use SPI data transfer) before the USBASP was readily available, and it may be easier to get hold of a PICKIT2 from online shops than the free-pdf/easy-pdk-programmer, for some people.
Best Regards,
db
Have a look here: https://github.com/free-pdk/fppa-pdk-documentation . You will find many notes and documents regarding programing of the IC.
I also had a look at PICKIT2 and considered using it. Unfortunately it was not fulfilling all requirements like capturing high speed signal from IC (this is required to calibrate the internal oscillator).
Also the price of PICKIT2 is a bit high compared to the $2 solution of easypdk programmer .
Also the price of PICKIT2 is a bit high compared to the $2 solution of easypdk programmer .So, where/how would someone in a developing nation, in particular Australia, get one of these $2 programmers?
There is a "limited voltage programming mode", at least for the PFS154, which does limit VDD to 5V. This mode is not yet documented however.
I would be interested too in using a PICkit too, since that would be an easier entry point for more people to get interested in the Padauk platform.
Hi
js_12345678_55AA you said tat the 13 bit padauks are supported, but on Github (https://github.com/free-pdk/sdcc-pdk-code-examples/blob/master/README) stands that it is still experimental. Futhermore I installed sdcc yesterday and only the pdk14 and pdk15 where showes for lib installation. Is there a way that I get the pdk13 lib, altthough it is still experimental. I want to use the PMS150C for a few small and very simple task, because of its little footprint (sot23-6).
I would be interested too in using a PICkit too, since that would be an easier entry point for more people to get interested in the Padauk platform.
I outlined the process to order from JLCPCB.com and LCSC.com. If you use the signup discounts you might pay less than USD20 (including shipping) for several pcbs and parts to make at least 10 pcs... and it is a fun project to solder them :-)
But anything lower than this (e.g. 4.9V) will not work for sure... But this obviously would work for the PFS (flash based ICs) only.
BTW: Have you seen this: https://github.com/free-pdk/easy-pdk-programmer-hardware/issues/10
Looks like somebody might create a ready made version and sell it soon...
If you follow the link / instructions from the example directory I mentioned earlier... https://github.com/free-pdk/easy-pdk-programmer-software/tree/master/Examples/src
you will find a download link for current SDCC snapshots (nightly builds) for several platforms: http://sdcc.sourceforge.net/snap.php
I just checked again and 13 bit support is included.