thanks
Giovanni
Search found 96 matches
- Thu Aug 10, 2017 11:36 am
- Forum: MIAC
- Topic: conversion between byte and integer to print
- Replies: 2
- Views: 6740
- Tue Aug 08, 2017 2:25 pm
- Forum: MIAC
- Topic: conversion between byte and integer to print
- Replies: 2
- Views: 6740
conversion between byte and integer to print
Hello,
I would like to print on the display a variable byte.
how can I convert it to integer? and use PrintNumber
the display print strange numbers ....
Thanks
Giovanni
I would like to print on the display a variable byte.
how can I convert it to integer? and use PrintNumber
the display print strange numbers ....
Thanks
Giovanni
- Tue Aug 08, 2017 2:01 pm
- Forum: MIAC
- Topic: pwm NOT behaving
- Replies: 5
- Views: 7669
Re: pwm NOT behaving
Hi,
as you said the program works on the target, fine.
I am going to check the simulator....
Giovanni
as you said the program works on the target, fine.
I am going to check the simulator....
Giovanni
- Mon Aug 07, 2017 4:47 pm
- Forum: MIAC
- Topic: pwm NOT behaving
- Replies: 5
- Views: 7669
Re: pwm NOT behaving
Hi, your program works just fine. Mine does not work and I am desperate I don't know what to do.....I tried different combination, but as the simulation will show you the PWM1 does not switch off and PWM2 does not turn on. What to do? Could you help me ,please? I think there is a bug in the PWM macr...
- Fri Aug 04, 2017 5:45 pm
- Forum: MIAC
- Topic: pwm NOT behaving
- Replies: 5
- Views: 7669
pwm NOT behaving
Hello, in the program I have attached here, the MIAC does not switch off the PWM coming out A, but it does from the PWM coming out of C. Plus this program does not seem to change the duty cycle on the fly. In general I am bit confused about how to turn on and off PWM: is PWM disable sufficient to tu...
- Tue Jul 25, 2017 10:54 am
- Forum: MIAC
- Topic: PWM in the MIAC V2
- Replies: 9
- Views: 10597
Re: PWM in the MIAC V2
I think I will use the 8 bit period for hardware PWM, which is gets me an output of about 3KHz.
Thanks
Giovanni
Thanks
Giovanni
- Mon Jul 24, 2017 11:58 am
- Forum: MIAC
- Topic: PWM in the MIAC V2
- Replies: 9
- Views: 10597
Re: PWM in the MIAC V2
how can I change the clock frequency of the micro inside my MIAC V2?
and
could you confirm the prescaler values that I can use, please?
Thanks
Giovanni
and
could you confirm the prescaler values that I can use, please?
Thanks
Giovanni
- Sun Jul 23, 2017 10:10 am
- Forum: MIAC
- Topic: PWM in the MIAC V2
- Replies: 9
- Views: 10597
Re: PWM in the MIAC V2
I looked at the datasheet of the 18F4455 and I have just realized that the prescaler can divide for 1 4 16.
So the minimum frequency can be freq of the clock / 16.
I guess I cannot change the clock frequency.....or I can?
So the minimum frequency can be freq of the clock / 16.
I guess I cannot change the clock frequency.....or I can?
- Sat Jul 22, 2017 8:24 pm
- Forum: MIAC
- Topic: PWM in the MIAC V2
- Replies: 9
- Views: 10597
Re: PWM in the MIAC V2
Yes I can change the duty cycle no problem. But I have set ChangePeriod (255, INT) I have noticed that not all the values are accepted by the prescaler: for instance 1,4, 16 are accepted and the change the output frequency. Could you tell me which number are accepted by the prescaler please? Thanks ...
- Thu Jul 20, 2017 1:38 pm
- Forum: MIAC
- Topic: PWM in the MIAC V2
- Replies: 9
- Views: 10597
Re: PWM in the MIAC V2
I cannot get the duty cycle and the frequency to change using ChangePeriod and SetDutyCycle! I need to generate 200Hz to 2Khz ish, and I need to vary the duty cycle from 50% to 90% ish. I have attached my program and a picture from the oscilloscope: I alwaus get the same picture regardless the value...
- Wed Jul 19, 2017 5:39 pm
- Forum: MIAC
- Topic: PWM in the MIAC V2
- Replies: 9
- Views: 10597
PWM in the MIAC V2
Hello can I have a bit of help on how to set the PWM of my MIAC V2, please? So I need to generate a square wave variable from 200Hz to 2Khz ish, and I need to vary the duty cycle from 50% to 90% ish. what would you set in the PWM macro parameters? ChangePeriod SetDutyCycle So when I want to generate...
- Mon Jul 03, 2017 3:29 pm
- Forum: MIAC
- Topic: MIAC 8 bits controlling a DC motor > 1.75A
- Replies: 6
- Views: 10268
Re: MIAC 8 bits controlling a DC motor > 1.75A
Hi Matt,
Ok, I will buy the driver and I will post my results.
(give me a week or so)
thank you!!!
Giovanni
Ok, I will buy the driver and I will post my results.
(give me a week or so)
thank you!!!
Giovanni
- Fri Jun 30, 2017 3:46 pm
- Forum: MIAC
- Topic: MIAC 8 bits controlling a DC motor > 1.75A
- Replies: 6
- Views: 10268
Re: MIAC 8 bits controlling a DC motor > 1.75A
The motor is RS Pro DC Geared Motor, Brushed, 12 V, 4.5 → 15 V dc, 2000 gcm, 3090 rpm, 19.8 W RS Stock No.454-0877 Brand RS Pro Mfr. Part No.942D51 the specs are attached to this post. I think is a 2.85A at 12V. Yes I would like to have speed control, too: I think if I connect the A and 0V to the in...
- Fri Jun 30, 2017 11:21 am
- Forum: MIAC
- Topic: MIAC 8 bits controlling a DC motor > 1.75A
- Replies: 6
- Views: 10268
MIAC 8 bits controlling a DC motor > 1.75A
Hello,
I would like to control 2 DC Motors;
they absorb more than 3A each.
I need also to change rotation direction of both.
Could you give me any suggestion, please?
Thanks
Giovanni
I would like to control 2 DC Motors;
they absorb more than 3A each.
I need also to change rotation direction of both.
Could you give me any suggestion, please?
Thanks
Giovanni
- Sun Mar 05, 2017 11:00 am
- Forum: Flowcode V6
- Topic: 1 sec delay is 4 sec
- Replies: 3
- Views: 5069
Re: 1 sec delay is 4 sec
oh! silly mistake!
Thanks
Giovanni
Thanks
Giovanni
- Thu Mar 02, 2017 1:36 pm
- Forum: Flowcode V6
- Topic: 1 sec delay is 4 sec
- Replies: 3
- Views: 5069
1 sec delay is 4 sec
very strange: I wrote a very very simple code to have a 4 relays turning on and off every second and the delay is 4 sec instead between two clicks?
do you know why?
flowcode 6 v 6.1.2.0
EB-006-00-9
EB-038-00
micro PIC18F2455
Giovanni
do you know why?
flowcode 6 v 6.1.2.0
EB-006-00-9
EB-038-00
micro PIC18F2455
Giovanni
- Fri Nov 04, 2016 6:52 pm
- Forum: MIAC
- Topic: MIAC ICD debugging kit don't work with MIAC V2
- Replies: 4
- Views: 6759
MIAC ICD debugging kit don't work with MIAC V2
Back in August I raised this problem in one of my previous Posts. I though MATRIX would have fixed this bug by now, but it seems that the ICD+gost tec does not work with MIAC V2. The result is that I cannot debug the software I wrote for a switching gas system and I have to deal with the disappointm...
- Fri Sep 16, 2016 3:13 pm
- Forum: MIAC
- Topic: Can MIAC cope with a PID control?
- Replies: 1
- Views: 4741
Can MIAC cope with a PID control?
Hi, I wonder if anyone can tell me if the MIAC V2 can cope with a PID control algorithm performed at the same time with other tasks? How can I determine if the the tiny PIC18F4455 is succumbing under the pressure of a PID processing algorithm and other duties performed at the same time? I need to ke...
- Fri Sep 09, 2016 12:05 pm
- Forum: MIAC
- Topic: HP299 - Flowkit ICD tool to debug MIAC
- Replies: 18
- Views: 18931
Re: HP299 - Flowkit ICD tool to debug MIAC
the behavior it is erratic, but it doesn't not work 9 out of 10 even if I apply what you suggested. However, it works for short simple programs though, LED blinking or simple LCD writing etc. I don't understand. I am reluctant to ship it back, beccause I feel that it is not an hardware problem and i...
- Wed Sep 07, 2016 12:02 pm
- Forum: MIAC
- Topic: HP299 - Flowkit ICD tool to debug MIAC
- Replies: 18
- Views: 18931
Re: HP299 - Flowkit ICD tool to debug MIAC
This HP299 does not work, so can I return it to MATRIX to check it?
maybe it is broken?
or
if it is not broken....what we do?
Giovanni
maybe it is broken?
or
if it is not broken....what we do?
Giovanni
- Mon Sep 05, 2016 10:51 am
- Forum: MIAC
- Topic: HP299 - Flowkit ICD tool to debug MIAC
- Replies: 18
- Views: 18931
Re: HP299 - Flowkit ICD tool to debug MIAC
Yes! I'll use the global variable as you suggested.
Thanks
Giovanni
P.S.
Perhaps is a good idea to increase the memory of the MIAC in the future in order to have plenty of space for the in-circuit debugger firmare to live together with the customer application software.......
Thanks
Giovanni
P.S.
Perhaps is a good idea to increase the memory of the MIAC in the future in order to have plenty of space for the in-circuit debugger firmare to live together with the customer application software.......
- Fri Sep 02, 2016 1:06 pm
- Forum: MIAC
- Topic: HP299 - Flowkit ICD tool to debug MIAC
- Replies: 18
- Views: 18931
Re: HP299 - Flowkit ICD tool to debug MIAC
program and log.
- Fri Sep 02, 2016 1:06 pm
- Forum: MIAC
- Topic: HP299 - Flowkit ICD tool to debug MIAC
- Replies: 18
- Views: 18931
Re: HP299 - Flowkit ICD tool to debug MIAC
No, it doesn't work. Sometimes it crashes/freeze flowcode and I have to shut it down manually using windows task manager. Sometime it replays with the following error messages when I press step-into, step-over or play (see pictures); the switch position is on ICD. I have attached my flowcode prog an...
- Thu Sep 01, 2016 4:56 pm
- Forum: MIAC
- Topic: HP299 - Flowkit ICD tool to debug MIAC
- Replies: 18
- Views: 18931
Re: HP299 - Flowkit ICD tool to debug MIAC
yes off course. let me try.
Giovanni
Giovanni
- Thu Sep 01, 2016 1:07 pm
- Forum: MIAC
- Topic: HP299 - Flowkit ICD tool to debug MIAC
- Replies: 18
- Views: 18931
Re: HP299 - Flowkit ICD tool to debug MIAC
Ouccchhhhhhh!!!!!!
I think I have run out of memory? Is it possible?
see attached log file.
Giovanni
I think I have run out of memory? Is it possible?
see attached log file.
Giovanni