Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - LDmicro.GitHub news v4.1.1

(you are viewing a thread; or go back to list of threads)

LDmicro.GitHub news v4.1.1 (by Ihor Nehrutsa)
https://github.com/LDmicro/LDmicro/releases/tag/4.1.1
== Release 4.1.1

* Fixed: SET PWM Timer1 at PIC. When two CCP modules are in a PWM mode,
Timer2 is the time-base for both PWM1 and PWM2 outputs. You must use
the same base PWM frequency for both SET PWM DUTY CYCLE elements.

* Fixed: SET PWM at AVR.

* New: RESET PWM element.
This instruction disable PWM output and set it to low level.
Also you can set another PWM base frequency by SET PWM DUTY CYCLE
after actuation the RESET PWM.

https://github.com/LDmicro/LDmicro/wiki/RESET-PWM
https://github.com/LDmicro/LDmicro/wiki/LDmicro-PWM

* New: SLEEP operation is implemented for PIC.
Tested only with PIC16F877 in Proteus!!!
Wake-up owing to external interrupt on rising edge of RB0/INT pin.
SLEEP operation don't affect MCU IO pins and others LDmicro operations.

* Wiki: Pull-up resistors
https://github.com/LDmicro/LDmicro/wiki/Pull-up-resistors

== Release 4.1.0

* New: SLEEP operation is implemented as Power-down Sleep Mode
for ATmega48, ATmega88, ATmega168, ATmega328.
Wake-up owing to external interrupt on rising edge of PD2/INT0, PD3/INT1 pins.
SLEEP operation don't affect MCU IO pins and others LDmicro operations.
SLEEP example https://github.com/LDmicro/LDmicro/wiki/SLEEP-example
Wed Dec 14 2016, 07:18:12, download attachment build411.zip
(no subject) (by Ihor Nehrutsa)
Please measure MCU current in SLEEP mode.
Please report here.
Wed Dec 14 2016, 07:24:57
Fold conversation A / D and pwm in pic16f628 (by Alejandro)
Greetings to all very good ldmicro felisitasiones program.
 
They do not forget that
Fold conversation A / D and pwm in pic16f628
Thu Dec 15 2016, 13:41:03
Look for missing "A / D" converter for pic16f628 And the pwm (by Alejandro)
greetings to all
Thu Dec 15 2016, 13:53:14
(no subject) (by MGP)
Ihor, you wrote

"* Fixed: SET PWM Timer1 at PIC. When two CCP modules are in a PWM mode,
Timer2 is the time-base for both PWM1 and PWM2 outputs. You must use
the same base PWM frequency for both SET PWM DUTY CYCLE elements. "

Is there a difference with version 4.09?
I made a program with 2 pwm outputs and everything works fine with V4.09.
Thu Dec 15 2016, 16:24:24
(no subject) (by Ihor Nehrutsa)
to MGP

== Release 4.0.B
* Added: PWM CCP1 on Timer1 module for PIC16F877, PIC16F887.

Try set a different base PWM frequency for PWM1 and PWM2
in v4.0.B.

PWM1 frequency will be ignored ?

Duty cycles may be different.
Thu Dec 15 2016, 18:01:27
(no subject) (by Ihor Nehrutsa)
to Alejandro

No "A/D" converter inside PIC16F628.

PWM1 based on Timer1 will be in next release of LDmicro.
Thu Dec 15 2016, 18:06:46
(no subject) (by MGP)
I knew that you can only use 1 base pwm frequency and 2 different dutycycles.
It works very well.
Fri Dec 16 2016, 02:31:09
(no subject) (by MGP)
Ihor

I was inserting the LUT instruction and I get 2 errors.
Is this normal?

The first you can see below.
Wed Dec 21 2016, 13:10:17, download attachment Snap1.jpg
(no subject) (by Ihor Nehrutsa)
When you set the table size and fill the value of look-up table, this message will not appear.
Thu Dec 22 2016, 06:31:35
(no subject) (by MGP)
I knew it worked but found it strange that you get an error when selecting this instruction, but it works and that is the most inportant.
Thu Dec 22 2016, 07:58:00
(no subject) (by Boris)
Why when program is too big to compile system crashes (not respond) instead of warning.
Sun Dec 25 2016, 15:09:40, download attachment Jedna Okrugla.ld
(no subject) (by MGP)
You are a bit to optimistic, a cycletime of 0.2mS is much to short.
I changed the CT to 10mS and I get this warning.
10mS is the minimum but you have to change the timers because you can't divide 10 by 0.7.
Mon Dec 26 2016, 03:08:34, download attachment Snap198.jpg
(no subject) (by Ihor Nehrutsa)
Page error still. The following phrase is not passed censorship.
Mon Dec 26 2016, 06:10:55
(no subject) (by Boris)
0,2mS is working without problem tested in many application.
Mon Dec 26 2016, 08:11:06, download attachment Etiketirka Trake.ld
(no subject) (by Ihor Nehrutsa)
to Boris

Jedna Okrugla.ld is too long and overload 2000h of FLASH Program Memory. (9674/8192 118% full)
Wed Dec 28 2016, 09:06:42
(no subject) (by Ihor Nehrutsa)
to Boris

You can reduce size

1)See rung 4
[Prednja <= 29998]

2)Formatted string over UART acts too wasteful to FLASH memory.
Wed Dec 28 2016, 09:45:51, download attachment JednaOkrugla2.ld
(no subject) (by Boris)
Thanks Ihor, that is 1/3 of program. I have to switch to ATMega128 but I hate fuses on ATMega and electronics around is different compare to PIC.
Thanks
Wed Dec 28 2016, 10:10:05
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):