Thank you George.
Type: Posts; User: AlbertoFS
Thank you George.
Hi all,
I am writing a code to detect an audio tone using Goertzel's algorithm. Since the code is very big, I would like to find solutions to reduce the lines of code. I have this formula written...
19/10/2018
Added a new code for VarToStrg() Macro.
Added new macros: CWBeacon_Init() / CWBeacon_Send() / CWWait_Buttons()
With these macros and a few lines of code, the PDS user can built a Ham CW...
10/10/2018
Added new macros: ReadTSensorTSH(), VarToStrg() & Update ConvToFloat() for negative numbers.
There are more than 35 macros available.
Regards
Alberto
I had same problem writing a preprocessor macro.
Alberto
John,
I have made some tests:
(1) Dividend(+) / Divisor(+) = Result(+) => Remainder(+), Decimals(+)
(2) Dividend(-) / Divisor(+) = Result(-) => Remainder(+), Decimals(+)
(3) Dividend(+) /...
Hi George,
It seemed obvious. I have not seen the tree in the forest. So why the Remainder is not negative when the result of the division is negative?
Thank you very much.
Regards
Alberto
Hi George & Bob,
George is right, I have to give an example to understand all the possibilities.
After performing some calculations with integer positive variables, I wanted to give the same...
The problem has been to pass the decimals to a negative float variable. But the problem is solved and the macro works very well.:smile:
See the code HERE.
04/10/2018:Version 1.4 Fixed some erratas with the preprocessor.
Add new macros: MeasurePeriod(), MeasureTime(), HRSOut_RCON(), ConvToFloat().
You can find more than 31 macros in this library....
Exactly this works very well. My question was how to pass the variables not signed and signed by the macro. The conversion is for 2 variables: Result & Decimals. I have seen that the variables must...
Hi all,
I have searched the manual and I have not found a command that converts integer variables (Whole number & decimals) to a variable Float.
Then I have written a macro for this function. Now...
I have been this problem for several weeks. PICKit 3 stopped working with the MPLAB_IPE for an unknown reason.
I have applied the akhil solution (see Post # 7) and it has worked perfectly.
Thanks...
Les,
Thank you very much for adding this solution. So this will be a great improvement for PDS users. I already have the code written to manage all the RCON bits at the start of the PIC.
I am...
Hi Les,
In case of debug I wanted to know the all status of the bits of RCON register and mostly the TO bit (watchdog status). As the compiler is configured, it can not be done because the clrwdt...
21/09/2018 Fixed an errata with __KEYPAD_PORT.
Regards
The N-Bits BCD Maths has been published HERE.
N-Bit Maths with BCD arrays:
Hi all,
I have written some codes allowing very large calculations with some unpacked integer BCD arrays.
It has been a lot of work because I do not know much about...
Hi George,
Yes, you have remembered it well. The n-bit Mats has been written by Darrel Taylor. This code used binary arrays and was written in assembler.
For the n-bit BCD Maths, I have used BCD...
Well, I have managed, after a lot of work, to write a new code that allows a division of 20 Bytes / 1 Byte or 64 Bits / 8 Bits in 6.5 mS with the FOSC of 64Mhz. I think it's very acceptable.
BCD...
Thank you very much to all. I'm still programming the PICs. The PDS is the medicine that allows me to have my brain active.
Alberto
Hi all,
I have written & finished to check some maths for unpacked BCD arrays for very very large numbers that I will publish soon in the wiki.
The division that I made with reiterations of...
Hi Joseph,
I think it is 4mS for K series. Then 4 x 32 = 128 mS.
If writing on the eeprom is not repetitive, it could be done by interruption when the program does other important things.
I wrote...
Hi Tim,
You probably have the wrong thread. I do not think I wrote this in this library.
Please, Could you specify in which case?
Regards
This article is based on an idea and code by Darrel Taylor. How much code space do our routines have? We can find out with some MPASM directives. And much more... Read the article HERE.
Alberto
AlbertoFS has just uploaded How much code space our routines have?!
Please read the article HERE.
Last week the web was blocked sometimes and now I get malware.
Firefox 64 bits V61.0.1
Alberto
Hi Teo,
You could use my project HERE.
I am going to review the code for the PIC18Fxx20 family and with 8 displays, I could help you in this matter.
Regards
Alberto
Yes, after the Declare statements. See the example in Eight7SegDisplay.BAS.
Include "MultiplexB8Digits_lib.inc"
Alberto
Joseph, do not worry. The code is not always obvious. As I have a way to write the code that is not compatible with the PIC16.
Amod,
For positive values, you can use the project: EightDisplaysV3,...
Admod,
I write my projects only for PIC18 and they are not compliant with PIC16. A good change would be to use a PIC18F25K22. Tell me your needs and I will be able to verify it.
Regards
Hi Joseph,
YES, the project with keypad includes Float, Signed, Integer numbers & Strings.
Into the Doc folder I included a manual of the project.
Regards
Alberto
George, thanks for the information. Nothing happens to me of all that you tell me and then I do not know how I can fix it. I see no alternative but to mount a real prototype for the Amicus Board for...
Hi all,
In case if I had wrong in version I upload again a new code.
Regards
Alberto
I have found my problem. It seems to be a path problem for Proteus. Then I have installed the version of PDS 3.6.1.7 on the main machine and everything works correctly with the Proteus 8.2 SP0....