Search found 96 matches

by go233
Thu Aug 10, 2017 11:36 am
Forum: MIAC
Topic: conversion between byte and integer to print
Replies: 2
Views: 6734

Re: conversion between byte and integer to print

thanks
Giovanni
:wink:
by go233
Tue Aug 08, 2017 2:25 pm
Forum: MIAC
Topic: conversion between byte and integer to print
Replies: 2
Views: 6734

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
by go233
Tue Aug 08, 2017 2:01 pm
Forum: MIAC
Topic: pwm NOT behaving
Replies: 5
Views: 7667

Re: pwm NOT behaving

Hi,
as you said the program works on the target, fine.
I am going to check the simulator....
Giovanni
by go233
Mon Aug 07, 2017 4:47 pm
Forum: MIAC
Topic: pwm NOT behaving
Replies: 5
Views: 7667

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...
by go233
Fri Aug 04, 2017 5:45 pm
Forum: MIAC
Topic: pwm NOT behaving
Replies: 5
Views: 7667

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...
by go233
Tue Jul 25, 2017 10:54 am
Forum: MIAC
Topic: PWM in the MIAC V2
Replies: 9
Views: 10591

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
by go233
Mon Jul 24, 2017 11:58 am
Forum: MIAC
Topic: PWM in the MIAC V2
Replies: 9
Views: 10591

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
by go233
Sun Jul 23, 2017 10:10 am
Forum: MIAC
Topic: PWM in the MIAC V2
Replies: 9
Views: 10591

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?
by go233
Sat Jul 22, 2017 8:24 pm
Forum: MIAC
Topic: PWM in the MIAC V2
Replies: 9
Views: 10591

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 ...
by go233
Thu Jul 20, 2017 1:38 pm
Forum: MIAC
Topic: PWM in the MIAC V2
Replies: 9
Views: 10591

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...
by go233
Wed Jul 19, 2017 5:39 pm
Forum: MIAC
Topic: PWM in the MIAC V2
Replies: 9
Views: 10591

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...
by go233
Mon Jul 03, 2017 3:29 pm
Forum: MIAC
Topic: MIAC 8 bits controlling a DC motor > 1.75A
Replies: 6
Views: 10266

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
by go233
Fri Jun 30, 2017 3:46 pm
Forum: MIAC
Topic: MIAC 8 bits controlling a DC motor > 1.75A
Replies: 6
Views: 10266

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...
by go233
Fri Jun 30, 2017 11:21 am
Forum: MIAC
Topic: MIAC 8 bits controlling a DC motor > 1.75A
Replies: 6
Views: 10266

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
by go233
Sun Mar 05, 2017 11:00 am
Forum: Flowcode V6
Topic: 1 sec delay is 4 sec
Replies: 3
Views: 5067

Re: 1 sec delay is 4 sec

oh! silly mistake!
Thanks
Giovanni
by go233
Thu Mar 02, 2017 1:36 pm
Forum: Flowcode V6
Topic: 1 sec delay is 4 sec
Replies: 3
Views: 5067

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
by go233
Fri Nov 04, 2016 6:52 pm
Forum: MIAC
Topic: MIAC ICD debugging kit don't work with MIAC V2
Replies: 4
Views: 6757

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...
by go233
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...
by go233
Fri Sep 09, 2016 12:05 pm
Forum: MIAC
Topic: HP299 - Flowkit ICD tool to debug MIAC
Replies: 18
Views: 18925

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...
by go233
Wed Sep 07, 2016 12:02 pm
Forum: MIAC
Topic: HP299 - Flowkit ICD tool to debug MIAC
Replies: 18
Views: 18925

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
by go233
Mon Sep 05, 2016 10:51 am
Forum: MIAC
Topic: HP299 - Flowkit ICD tool to debug MIAC
Replies: 18
Views: 18925

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.......
by go233
Fri Sep 02, 2016 1:06 pm
Forum: MIAC
Topic: HP299 - Flowkit ICD tool to debug MIAC
Replies: 18
Views: 18925

Re: HP299 - Flowkit ICD tool to debug MIAC

program and log.
by go233
Fri Sep 02, 2016 1:06 pm
Forum: MIAC
Topic: HP299 - Flowkit ICD tool to debug MIAC
Replies: 18
Views: 18925

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...
by go233
Thu Sep 01, 2016 4:56 pm
Forum: MIAC
Topic: HP299 - Flowkit ICD tool to debug MIAC
Replies: 18
Views: 18925

Re: HP299 - Flowkit ICD tool to debug MIAC

yes off course. let me try.
Giovanni
by go233
Thu Sep 01, 2016 1:07 pm
Forum: MIAC
Topic: HP299 - Flowkit ICD tool to debug MIAC
Replies: 18
Views: 18925

Re: HP299 - Flowkit ICD tool to debug MIAC

Ouccchhhhhhh!!!!!!
I think I have run out of memory? Is it possible?
:cry:
see attached log file.
Giovanni