ATMEGA8A TOUCH PROJECT IN ATMEL STUDIO 7

Go To Last Post
9 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

I have read atmega8a datasheet it shows it has qtouch , how generate code in atmel studio 7 , qtouch with atmega8a device , i tried using different version of q touch library but cant get Atmega8a device in it , please suggest any solution .

I have atmega8a device i have to use this controller for programming .

 

Umesh mishra

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What do you mean by:

 

cant get Atmega8a device in it

Have you set the project's MCU in the initial project setup?:

 

Jim 

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

while generating qtouch project , in the end it shows select device window , in that window ATMEGA8A is missing , i tried adding different controller and try to change device after projrct generation but still it goes to same window and same number of devices .

Umesh mishra

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

While it's possible Atmel might have done qtouch for a 20 year old chip like mega8 it seems unlikely. Suggest you switch to a more modern device. The 48/88/168/328 family (only 15, not 20 years old) are far more likely to be supported.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have tried adding different devices , but it is not  working, it shows error msg that asf version 3.30 should be installed , but i cant find asf 3.30 .

with all new update qtouch project is not working. i have searched many sources but can not find asf which support atmel 7 and also qtouch library 5.9.

what this people are doing i dont know.

Qtouch library 5.9                                Provides libraries for QTouch. The supported ASF version is 3.30.1 – v3.36.2.1031.

Atmel software framwork 3.47.0.1648      Provides software drivers and libraries to build applications for Atmel devices. The minimum supported ASF version is 3.39.0.

 

how this latest qtouch library will work with latest asf .

 

previous version of asf are not supported in atmel 7 .

 

what to do ?

 

 

 

Umesh mishra

Last Edited: Wed. Oct 30, 2019 - 11:16 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Is there a device window for AVR without PTC?

Following shows mega64A; maybe mega8A is there if that Atmel Studio extension is up-to-date.

QTouch Composer | Project Builder for non-PTC Devices | Device Selection

 

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you gchapman,

at that link i have got asf 3.30 but it is not executable file , it  is standalone zip file. how to add this files ?

i tried some higher version  but it is not compatible with atmel studio7 .

in ATMEL START i cant find atmega8A controller?

with asf v 3.35.1.898 ,i am able make project for atmega328p

but expect touch code , all other program is working , for touch code controller is showing no action ,

 

 

#include <avr/io.h>
#include <avr/interrupt.h>
#define __delay_cycles(n)     __builtin_avr_delay_cycles(n)
#define __enable_interrupt()  sei()

#include "touch_api.h"
#include "touch.h"

#define GET_SENSOR_STATE(SENSOR_NUMBER) qt_measure_data.qt_touch_status.sensor_states[(SENSOR_NUMBER/8)] & (1 << (SENSOR_NUMBER % 8))
#define GET_ROTOR_SLIDER_POSITION(ROTOR_SLIDER_NUMBER) qt_measure_data.qt_touch_status.rotor_slider_values[ROTOR_SLIDER_NUMBER]

extern void touch_measure(void);
extern void touch_init( void );
extern void init_system( void );
extern void init_timer_isr(void);
extern void set_timer_period(uint16_t);

/* Timer period in msec. */
uint16_t qt_measurement_period_msec = QT_MEASUREMENT_PERIOD_MS;
uint16_t time_ms_inc=0;
volatile uint8_t time_to_measure_touch = 0u;

/* current time, set by timer ISR */
volatile uint16_t current_time_ms_touch = 0u;

int main( void )
{
DDRB|=(1<<PORTB4)|(1<<PORTB5);
   /* initialise host app, pins, watchdog, etc */
    init_system();

    /* configure timer ISR to fire regularly */
    init_timer_isr();

	/* Initialize Touch sensors */
	touch_init();
	delay_init();
    /* enable interrupts */
    __enable_interrupt();


    /* loop forever */
    for( ; ; )
    {
        touch_measure();
		if (GET_SENSOR_STATE(0)!=0)
		{
			PORTB|=(1<<PORTB4);
		}
		else
			PORTB&=~(1<<PORTB4);
			
			PORTB|=(1<<PORTB5);
			delay_ms(500);
			PORTB&=~(1<<PORTB5);
			delay_ms(500);
    /*  Time Non-critical host application code goes here  */
    }
}

pb5 pin is blinking but pb4 is fixed low , i have changed if condition but it is not getting true , i have made cap touch pins and touched it , different capacitor i have used .0-50pf no result in touch condition.

please help

 

 

Umesh mishra

Last Edited: Wed. Oct 30, 2019 - 01:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ncctelecom wrote:
how to add this files ?
indecision

 

"Dare to be naïve." - Buckminster Fuller