Search found 14 matches

by PeterMcLeod
21 Nov 2019 00:38
Forum: mikroPascal PRO for AVR General
Topic: Burst firing PWM
Replies: 1
Views: 1506

Burst firing PWM

I want to fire a spark generator using PWM. The circuit needs a 100 to 250mS burst at 25Khz with a variable duty. I am using an ATxMEGA128A1U (MIkroelectronica Ready for XMEGA) and a MikroPascal for AVR compiler. I have set up the parameters for the PWM as follows PORTC_DIRSET := 0xff; // PWM is on ...
by PeterMcLeod
01 Nov 2019 14:09
Forum: mikroPascal PRO for AVR General
Topic: Serial comms for a 4D display
Replies: 3
Views: 1916

Re: Serial comms for a 4D display

Thank you Jovana Yes I understand I can use a FOR loop and it was part of my test program for the ARM processor. I have tried this with the AVR processor and it is not where the problem lies. You mentioned the source code for the click board but I did not get the attachment. Could you send it again ...
by PeterMcLeod
31 Oct 2019 20:16
Forum: mikroPascal PRO for AVR General
Topic: Serial comms for a 4D display
Replies: 3
Views: 1916

Serial comms for a 4D display

I'm bogged down with what should be a simple task. I want to design a CPU for a couple of machines. It has to collect data from a 4D touch screen and set machine variables. The 4D display uses a simple serial input using Tx and Rx lines only. To ask an object on the screen to change it's status I ha...
by PeterMcLeod
25 Jul 2019 15:41
Forum: mikroPascal PRO for ARM General
Topic: Using UART4 on Clicker 2
Replies: 4
Views: 2208

Re: Using UART4 on Clicker 2

Is there no answer?

I tried using SOFT_UART but no result. Is it possible that I have not set up the UART properly? Do I have to activate the 'Alternative function call for instance?
regards
Peter
by PeterMcLeod
23 Jul 2019 00:07
Forum: mikroPascal PRO for ARM General
Topic: Using UART4 on Clicker 2
Replies: 4
Views: 2208

Re: Using UART4 on Clicker 2

Many thanks Jovana for your quick response. I have attached a PDF showing the connections between the 4D display and the Clicker2 board. However this connection loaded the USB too much so I left off the 5v link (Black wire) and used a separate power supply for each board. I have attempted to use the...
by PeterMcLeod
21 Jul 2019 08:33
Forum: mikroPascal PRO for ARM General
Topic: Using UART4 on Clicker 2
Replies: 4
Views: 2208

Using UART4 on Clicker 2

I am in the middle of a large project for a specialized welding machine which uses an STM32F407 processor and a 4D 7" touch screen. The touch screen has a number of controls, slider, switches, meters etc. To talk to the screen I need to use Tx and Rx of UART4 or UART1 of the processor. As a simple t...
by PeterMcLeod
23 Nov 2017 19:18
Forum: User Projects
Topic: MicroPascal for ARM V6
Replies: 1
Views: 1582

MicroPascal for ARM V6

I have been using my licensed version of VTFT for some time and have a few projects underway. I only used a demo copy of the Compiler. I have just purchased Version 6 released a couple of days ago and have received my Dongle. My problem is I cannot get anything to happen pressing F12 I have used My ...
by PeterMcLeod
13 Nov 2017 23:04
Forum: User Projects
Topic: On Press
Replies: 2
Views: 1854

Re: On Press

Many thanks Lana, this will do fine!
by PeterMcLeod
10 Nov 2017 01:11
Forum: User Projects
Topic: On Press
Replies: 2
Views: 1854

On Press

Visual TFT. MikroPascal, ARM I have a group of 5 radio buttons. I want to use RadioButtonxonPress for each button. I want to flash-store an array of 4 values for each key. However, if you press the key for less than 3 seconds you read from the array else (ie more than 3 seconds) you write to the arr...
by PeterMcLeod
07 Nov 2017 23:33
Forum: mikroPascal PRO for ARM General
Topic: Animation
Replies: 2
Views: 2784

Re: Animation

Many Thanks Lana
This is very useful I just had to look closer!!
regards
Peter
by PeterMcLeod
04 Nov 2017 22:23
Forum: mikroPascal PRO for ARM General
Topic: Animation
Replies: 2
Views: 2784

Animation

I'm using MikroMedia 7, Visual TFT and MikroPascal pro for ARM. I want to show an animation of 100 bmp frames. I need to know how this is done but all I can find close to what I want is the fireplace example. Unfortunately this will not load into my Visual TFT or MikroPascal pro. There are some refe...
by PeterMcLeod
02 Nov 2016 00:26
Forum: User Projects
Topic: TFT Graphic Library
Replies: 4
Views: 8176

Re: TFT Graphic Library

Is the library usable in MikroPascal for ARM? When I downloaded and extracted the file I could not open the mpkp file in Acrobat do you have it as a PDF?
by PeterMcLeod
24 May 2016 15:37
Forum: mikroPascal PRO for AVR General
Topic: Interrupts
Replies: 1
Views: 2218

Interrupts

My program wishes to talk to an 'ElectronicsAssembly-LCD' screen. EDIPTFT70. I have written the code and connected but there is no comms. I have now reduced the code to a very simple test program to flash an LED if the Interrupt is fired! The interrupt is physically connect to INT04 pin 23 of an ATM...
by PeterMcLeod
18 May 2014 20:28
Forum: mikroPascal PRO for AVR General
Topic: Library for MAX31855
Replies: 1
Views: 2533

Library for MAX31855

I want to use a MAX31855 Thermocouple sensor IC for a Thermostat using ATMEGA48A. The chip uses SPI to communicate and has a lot of comms protocol that I don't need to use. Is there a library for this chip that I can use as it would simplify my design effort a lot?

Go to advanced search