Haz una pregunta
  Foros de Electrónica » Diseño digital » Microcontroladores y sistemas embebidos
Foros Registrarse ¿Olvidaste tu contraseña?

Temas similares

02/11/2014 #1


Proyecto con Psoc 1 conversor digital/analogo + teclado
buenas noches compañeros solicito su ayuda en un proyecto que realizo con Psoc 1 y consta de tener un convertidor digital análogo y un teclado, su función seria que cada vez que oprima la tecla 1 del teclado me inicie una grabación de un animalito y al pulsar la tecla 2 otro animalito y la tecla 3 otro;
El problema que tengo es que el conversor y el teclado funcionando por aparte pero al unirlos no funciona o solo funciona una parte quisiera saber que estoy haciendo mal de antemano muchas gracias

programa teclado

Código:
//----------------------------------------------------------------------------
// C main line
//----------------------------------------------------------------------------

#include <m8c.h>        // part specific constants and macros
#include "PSoCAPI.h"    // PSoC API definitions for all User Modules
#include <stdio.h>            //definitions for all standard io functions csprintf
#include <string.h> // libreria para la asignacion de vectores multidimensionales tipo char  a char
#include <tecla.h>  // adjuntar archivos tecla.c y tecla.h al proyecto en el area de librerias


char tecla [1];




void main(void)
{
	// M8C_EnableGInt ; // Uncomment this line to enable Global Interrupts
	// Insert your main routine code here.
    
	
	LCD_1_Start(); // Initialize LCD hardware
    LCD_1_Position(0,4); // Position cursor @ row 1, col 0
	LCD_1_PrCString("Teclado"); // Print a constant "ROM" string
    	
	while(1)
		{
			
			csprintf(tecla,"%c  ",LeerTecla());
			
			LCD_1_Position(1,0);
			LCD_1_PrCString("Tec.oprimida=");				
			LCD_1_Position(1,14); // Position cursor @ row 1, col 14
	        LCD_1_PrString(tecla);
		
		}
}



aca esta la libreria tecla c

const char  TECLAS[4][4] =  {	{\'1\',\'4\',\'7\',\'*\'},

   	                            {\'2\',\'5\',\'8\',\'0\'},
	
   	                            {\'3\',\'6\',\'9\',\'#\'},

       		                    {\'A\',\'B\',\'C\',\'D\'}
                   			    };



char LeerTecla(void) //Devuelve un car�cter de la entrada est�ndar
	{
		
	    int columna=0;
        
        // TECLAS[FILA][COLUMA]             
        // configuracion de pines P1 P1.0,P1.1,P1.2,P1.3 como salida strong
	    //                           P1.4,P1.5,P1.6,P1.7 como entradas en pull down con resistencia a tierra
	
		PRT1DM0=0X0F;
		PRT1DM1=0X00;
		PRT1DM2=0X00;							
									
		for(columna=0 ; columna<4; columna++ )
			{   
            	switch (columna)
			   		{
                		case 0: PRT1DR = 0x08;break;
            			case 1: PRT1DR = 0x04;break;
            			case 2: PRT1DR = 0x02;break;
						case 3: PRT1DR = 0x01;break;
        			}   
				if (PRT1DR & 0X80) return TECLAS[0][columna];
				if (PRT1DR & 0X40) return TECLAS[1][columna];
				if (PRT1DR & 0X20) return TECLAS[2][columna];
				if (PRT1DR & 0X10) return TECLAS[3][columna];
				
			}
		return ;
		
	} 


y el conversor 

include <m8c.h>        // part specific constants and macros
#include "PSoCAPI.h"    // PSoC API definitions for all User Modules

int Pointer;
const char caliente[9960] = {
//129,	129,	129,	128,	128,	128,	128,	129,	129,	129,	128,	128,	129,	128,	128,	128,	128,	127,	128,	128,	127,	128,	128,	128,	127,	127,	127,	128,	127,	127,	128,	128,	127,	127,	126,	127,	127,	127,	127,	127,	127,	128,	127,	128,	127,	128,	127,	127,	128,	128,	128,	128,	128,	127,	128,	128,	127,	127,	129,	129,	128,	128,	128,	129,	128,	128,	129,	129,	129,	128,	129,	129,	128,	129,	128,	128,	128,	129,	129,	129,	129,	129,	129,	128,	129,	128,	129,	128,	128,	128,	128,	128,	128,	128,	128,	127,	128,	128,	128,	128,	128,	127,	128,	128,	127,	127,	128,	128,	128,	127,	127,	127,	128,	128,	127,	128,	127,	128,	128,	128,	129,	128,	128,	128,	127,	127,	129,	129,	128,	128,	128,	128,	128,	128,	127,	128,	127,	129,	128,	128,	128,	128,	128,	128,	128,	128,	127,	128,	128,	129,	127,	121,	115,	113,	121,	135,	140,	135,	130,	133,	137,	135,	125,	120,	124,	133,	135,	131,	127,	128,	133,	130,	127,	124,	124,	126,	128,	127,	127,	129,	128,	128,	129,	128,	129,	127,	127,	129,	129,	130,	128,	129,	130,	128,	126,	127,	129,	129,	128,	128,	128,	129,	128,	128,	130,	134,	137,	126,	117,	117,	129,	141,	135,	120,	117,	131,	140,	130,	117,	120,	131,	137,	130,	122,	123,	129,	135,	130,	125,	127,	132,	130,	128,	130,	132,	126,	126,	131,	136,	144,	150,	122,	75,	73,	118,	158,	148,	117,	111,	132,	151,	137,	105,	98,	128,	156,	148,	123,	120,	135,	145,	138,	126,	121,	119,	120,	124,	131,	131,	126,	124,	129,	135,	137,	126,	121,	129,	139,	137,	127,	121,	119,	122,	125,	124,	124,	129,	136,	138,	136,	133,	130,	127,	128,	130,	130,	126,	125,	126,	126,	124,	123,	123,	123,	124,	124,	123,	124,	124,	125,	126,	127,	127,	127,	124,	124,	127,	129,	128,	127,	127,	128,	131,	132,	129,	130,	134,	138,	135,	132,	130,	132,	134,	134,	135,	136,	138,	137,	137,	137,	137,	139,	139,	137,	137,	142,	145,	151,	149,	120,	102,	108,	122,	99,	75,	91,	125,	129,	118,	127,	141,	142,	140,	140,	126,	113,	115,	122,	113,	96,	100,	115,	123,	124,	133,	142,	141,	136,	133,	121,	108,	106,	109,	110,	114,	128,	138,	140,	142,	142,	136,	127,	126,	126,	125,	131,	139,	143,	141,	140,	140,	136,	133,	137,	144,	145,	146,	154,	158,	153,	149,	146,	153,	162,	183,	175,	79,	20,	59,	126,	85,	25,	82,	183,	209,	176,	159,	140,	112,	120,	123,	67,	22,	63,	138,	141,	110,	149,	200,	193,	160,	150,	132,	86,	65,	83,	90,	76,	95,	132,	141,	146,	165,	167,	133,	115,	126,	121,	96,	97,	119,	133,	142,	156,	150,	132,	130,	138,	131,	123,	134,	148,	144,	143,	146,	138,	133,	142,	148,	143,	148,	164,	170,	162,	165,	168,	182,	183,	89,	23,	24,	83,	134,	86,	98,	189,	234,	222,	175,	91,	29,	30,	77,	79,	34,	72,	185,	236,	214,	181,	161,	126,	78,	58,	50,	34,	55,	129,	187,	178,	156,	162,	151,	111,	86,	87,	89,	102,	146,	173,	152,	129,	134,	134,	114,	111,	130,	142,	148,	161,	162,	141,	128,	130,	127,	120,	136,	155,	154,	148,	160,	172,	162,	153,	162,	170,	175,	176,	83,	22,	20,	80,	177,	143,	123,	190,	234,	211,	131,	38,	26,	22,	68,	145,	129,	135,	204,	236,	210,	130,	61,	31,	23,	49,	101,	136,	153,	176,	191,	159,	103,	74,	74,	82,	100,	137,	169,	166,	148,	132,	113,	97,	102,	123,	140,	151,	161,	161,	141,	121,	117,	126,	137,	147,	155,	154,	154,	162,	161,	143,	135,	152,	172,	173,	164,	158,	156,	92,	27,	19,	67,	171,	186,	169,	182,	201,	175,	116,	40,	24,	22,	79,	185,	194,	176,	192,	208,	167,	91,	37,	22,	29,	91,	172,	201,	183,	144,	121,	105,	93,	77,	75,	102,	149,	185,	178,	135,	95,	91,	112,	128,	125,	130,	150,	166,	158,	129,	107,	107,	126,	146,	157,	152,	149,	152,	154,	144,	137,	148,	161,	162,	162,	167,	171,	161,	156,	98,	29,	17,	59,	182,	198,	162,	175,	202,	176,	109,	38,	23,	19,	88,	214,	213,	173,	182,	194,	152,	71,	27,	22,	39,	126,	207,	206,	167,	139,	129,	101,	67,	51,	68,	118,	178,	198,	167,	125,	104,	104,	104,	103,	112,	139,	167,	171,	146,	115,	105,	117,	129,	137,	150,	164,	160,	144,	135,	139,	142,	148,	153,	153,	161,	176,	177,	160,	148,	141,	71,	21,	22,	98,	195,	177,	170,	195,	199,	156,	82,	27,	21,	30,	144,	214,	176,	175,	209,	196,	121,	46,	22,	23,	75,	165,	189,	162,	156,	161,	134,	83,	58,	65,	94,	137,	174,	172,	149,	134,	124,	109,	99,	106,	122,	142,	158,	156,	138,	125,	124,	126,	127,	132,	142,	150,	153,	146,	138,	144,	153,	152,	146,	148,	159,	169,	166,	161,	157,	145,	74,	20,	22,	99,	183,	160,	157,	198,	214,	169,	82,	25,	20,	34,	141,	179,	144,	180,	232,	217,	129,	46,	21,	29,	75,	132,	145,	152,	183,	191,	146,	89,	64,	66,	84,	111,	139,	160,	172,	166,	140,	115,	105,	103,	104,	118,	140,	156,	157,	152,	142,	129,	120,	119,	125,	141,	155,	158,	156,	154,	152,	148,	143,	142,	154,	167,	168,	166,	164,	143,	64,	16,	33,	117,	159,	127,	156,	216,	225,	168,	80,	24,	18,	58,	135,	112,	115,	200,	240,	206,	124,	70,	49,	54,	72,	83,	100,	157,	205,	185,	133,	113,	108,	84,	69,	82,	116,	151,	172,	162,	141,	136,	131,	107,	88,	102,	131,	148,	155,	158,	153,	141,	126,	114,	115,	132,	148,	158,	165,	168,	161,	146,	131,	133,	152,	162,	162,	167,	176,	153,	65,	13,	46,	117,	126,	99,	155,	223,	227,	169,	93,	26,	32,	82,	91,	56,	102,	206,	234,	184,	141,	128,	110,	87,	60,	48,	80,	146,	168,	133,	136,	170,	154,	99,	76,	93,	112,	116,	120,	128,	147,	163,	151,	122,	110,	118,	120,	117,	122,	137,	153,	153,	140,	137,	135,	130,	134,	143,	142,	145,	156,	152,	144,	153,	165,	159,	152,	165,	168,	150,	102,	27,	29,	96,	126,	86,	109,	200,	228,	179,	128,	88,	64,	84,	81,	42,	55,	148,	190,	159,	154,	180,	176,	140,	104,	71,	71,	93,	99,	87,	107,	156,	175,	150,	134,	139,	129,	103,	88,	93,	108,	127,	137,	141,	145,	151,	145,	129,	122,	124,	125,	126,	132,	139,	145,	149,	150,	142,	135,	134,	133,	134,	140,	147,	153,	164,	167,	159,	159,	167,	156,	135,	71,	22,	75,	107,	72,	63,	143,	201,	187,	160,	148,	128,	121,	99,	49,	36,	84,	118,	104,	122,	175,	200,	188,	161,	138,	126,	116,	84,	52,	57,	92,	110,	116,	136,	163,	171,	155,	139,	132,	119,	105,	99,	102,	111,	125,	135,	144,	150,	148,	140,	135,	131,	129,	130,	137,	141,	141,	144,	142,	136,	134,	134,	139,	147,	153,	162,	166,	164,	171,	173,	160,	122,	49,	58,	101,	74,	39,	81,	141,	154,	156,	158,	149,	152,	157,	118,	83,	89,	103,	86,	79,	100,	127,	142,	145,	142,	152,	163,	148,	117,	113,	123,	121,	104,	98,	105,	115,	115,	114,	123,	135,	141,	142,	139,	135,	137,	135,	129,	124,	126,	130,	132,	133,	137,	142,	142,	141,	139,	135,	130,	127,	127,	131,	136,	138,	141,	145,	148,	149,	150,	152,	155,	151,	151,	129,	112,	125,	116,	107,	90,	97,	109,	109,	105,	100,	97,	112,	117,	112,	106,	120,	139,	143,	139,	135,	138,	148,	140,	122,	115,	123,	129,	123,	115,	118,	123,	120,	109,	103,	105,	109,	111,	112,	120,	131,	138,	138,	136,	136,	137,	136,	130,	132,	139,	141,	140,	140,	141,	139,	134,	127,	126,	127,	128,	128,	131,	137,	143,	146,	146,	147,	151,	155,	159,	156,	158,	147,	132,	139,	123,	118,	104,	101,	104,	101,	96,	91,	87,	100,	106,	107,	110,	121,	133,	138,	135,	136,	146,	151,	144,	138,	139,	143,	140,	133,	122,	118,	119,	111,	98,	91,	96,	101,	106,	109,	116,	128,	135,	132,	132,	132,	132,	136,	134,	134,	141,	145,	143,	140,	139,	134,	131,	125,	122,	126,	127,	127,	131,	138,	142,	142,	141,	141,	147,	153,	156,	159,	163,	156,	138,	145,	128,	124,	109,	98,	101,	103,	97,	93,	85,	96,	102,	102,	103,	106,	121,	132,	134,	133,	141,	151,	150,	148,	147,	150,	149,	145,	135,	128,	126,	116,	103,	97,	98,	100,	102,	104,	108,	116,	121,	119,	124,	130,	134,	137,	139,	141,	145,	145,	142,	140,	139,	137,	135,	131,	129,	132,	133,	129,	130,	132,	134,	134,	136,	138,	143,	148,	153,	155,	158,	160,	137,	140,	141,	127,	127,	108,	108,	113,	106,	96,	90,	90,	99,	95,	99,	100,	110,	118,	123,	121,	131,	142,	147,	147,	151,	156,	157,	149,	141,	133,	133,	133,	120,	108,	115,	110,	106,	104,	95,	102,	111,	106,	109,	115,	119,	128,	132,	133,	138,	145,	143,	143,	147,	143,	142,	142,	136,	136,	136,	129,	128,	131,	130,	131,	132,	134,	139,	143,	141,	145,	149,	154,	153,	135,	150,	140,	135,	130,	112,	112,	117,	104,	96,	93,	99,	99,	92,	95,	96,	106,	112,	115,	114,	131,	143,	142,	143,	148,	150,	152,	150,	146,	143,	146,	141,	130,	121,	117,	112,	104,	105,	100,	99,	104,	104,	107,	114,	114,	120,	126,	130,	136,	140,	142,	147,	151,	148,	145,	147,	143,	141,	140,	135,	134,	136,	133,	132,	134,	131,	136,	139,	138,	146,	149,	151,	144,	136,	151,	133,	135,	131,	119,	121,	125,	107,	103,	99,	101,	94,	94,	97,	99,	104,	112,	117,	117,	129,	130,	130,	137,	146,	145,	148,	151,	152,	150,	147,	136,	131,	130,	120,	114,	109,	104,	105,	101,	100,	103,	104,	108,	113,	116,	120,	124,	130,	132,	137,	140,	143,	144,	148,	148,	148,	146,	143,	141,	139,	134,	131,	133,	135,	136,	139,	139,	141,	145,	145,	148,	133,	137,	145,	128,	139,	127,	121,	124,	123,	108,	109,	104,	107,	98,	102,	102,	103,	106,	110,	108,	113,	125,	124,	130,	138,	143,	143,	147,	146,	145,	145,	148,	139,	138,	133,	127,	123,	114,	110,	107,	105,	105,	104,	105,	109,	110,	114,	117,	121,	124,	126,	132,	136,	141,	145,	148,	148,	150,	149,	146,	144,	142,	139,	139,	138,	136,	137,	138,	137,	139,	140,	139,	144,	131,	143,	139,	123,	138,	122,	122,	125,	119,	113,	117,	112,	115,	104,	107,	102,	102,	105,	107,	106,	116,	122,	123,	128,	131,	136,	137,	142,	142,	145,	146,	145,	140,	139,	136,	130,	121,	121,	115,	111,	113,	106,	108,	109,	107,	110,	111,	112,	119,	121,	125,	129,	134,	137,	141,	144,	144,	147,	148,	145,	146,	144,	141,	140,	140,	137,	138,	136,	136,	140,	138,	143,	135,	129,	143,	123,	134,	130,	120,	127,	126,	121,	119,	115,	119,	111,	108,	113,	103,	111,	109,	110,	111,	118,	118,	122,	125,	131,	133,	135,	141,	139,	143,	144,	142,	139,	139,	135,	132,	128,	123,	121,	120,	115,	112,	113,	109,	113,	113,	112,	114,	116,	118,	124,	128,	128,	133,	139,	140,	144,	145,	144,	144,	145,	140,	141,	139,	137,	139,	137,	137,	137,	137,	137,	139,	126,	135,	135,	122,	137,	123,	125,	126,	124,	123,	116,	120,	120,	110,	117,	111,	109,	112,	108,	113,	112,	119,	120,	121,	129,	131,	130,	135,	134,	136,	141,	138,	139,	138,	137,	134,	133,	128,	127,	127,	122,	119,	121,	118,	117,	118,	115,	118,	120,	119,	121,	124,	126,	123,	129,	135,	132,	136,	145,	146,	142,	142,	146,	145,	139,	143,	149,	144,	145,	150,	149,	146,	123,	139,	142,	111,	119,	126,	118,	97,	116,	117,	96,	104,	113,	108,	105,	104,	123,	116,	109,	127,	134,	124,	126,	148,	136,	131,	147,	143,	134,	136,	141,	128,	122,	124,	121,	114,	112,	114,	114,	108,	116,	119,	115,	121,	126,	122,	125,	130,	128,	131,	134,	135,	136,	137,	139,	139,	138,	140,	139,	135,	140,	143,	142,	146,	151,	148,	156,	158,	158,	136,	145,	160,	111,	128,	138,	108,	102,	125,	107,	90,	105,	106,	100,	93,	108,	115,	100,	112,	132,	118,	116,	143,	137,	125,	147,	147,	135,	141,	147,	137,	127,	135,	128,	113,	117,	117,	105,	110,	114,	110,	115,	120,	120,	122,	124,	127,	127,	129,	134,	133,	136,	140,	139,	139,	142,	141,	139,	143,	142,	140,	148,	147,	150,	158,	159,	156,	139,	154,	153,	110,	138,	137,	102,	119,	126,	100,	101,	109,	103,	95,	95,	110,	100,	98,	114,	116,	107,	125,	133,	122,	136,	144,	136,	138,	145,	141,	134,	136,	137,	121,	122,	126,	109,	113,	116,	108,	114,	116,	115,	121,	121,	122,	127,	128,	131,	132,	138,	139,	138,	143,	142,	140,	143,	141,	142,	143,	146,	152,	150,	155,	161,	150,	134,	162,	136,	112,	150,	121,	104,	128,	117,	98,	108,	107,	100,	93,	102,	105,	95,	108,	116,	110,	116,	132,	124,	130,	143,	139,	140,	147,	147,	141,	140,	142,	130,	120,	127,	112,	111,	115,	105,	110,	114,	111,	117,	120,	119,	127,	128,	132,	134,	141,	141,	142,	148,	147,	147,	149,	145,	144,	146,	144,	145,	149,	151,	155,	144,	133,	159,	122,	116,	146,	106,	106,	127,	107,	100,	111,	102,	100,	98,	105,	100,	97,	111,	110,	111,	124,	127,	124,	139,	140,	139,	144,	143,	143,	139,	139,	139,	125,	125,	123,	107,	113,	109,	102,	113,	111,	109,	121,	119,	121,	132,	130,	133,	141,	145,	145,	151,	154,	151,	153,	155,	147,	150,	154,	147,	156,	157,	152,	138,	145,	148,	107,	131,	131,	96,	115,	122,	96,	105,	111,	99,	99,	104,	105,	97,	109,	111,	110,	118,	126,	124,	130,	139,	134,	140,	143,	144,	138,	138,	141,	127,	124,	127,	111,	113,	114,	103,	113,	110,	105,	119,	115,	115,	126,	127,	129,	136,	140,	144,	148,	153,	151,	152,	154,	151,	155,	156,	155,	160,	160,	160,	135,	147,	152,	102,	133,	130,	90,	116,	120,	90,	104,	109,	93,	100,	105,	103,	102,	114,	112,	114,	123,	128,	125,	135,	142,	137,	141,	148,	143,	134,	142,	133,	121,	125,	117,	107,	111,	106,	102,	113,	108,	109,	120,	117,	119,	131,	129,	132,	143,	145,	144,	154,	155,	150,	160,	157,	152,	160,	158,	159,	164,	157,	132,	154,	145,	100,	137,	120,	87,	116,	114,	82,	105,	106,	90,	102,	107,	103,	106,	119,	114,	122,	130,	132,	132,	141,	144,	139,	143,	147,	134,	130,	138,	117,	115,	120,	102,	104,	108,	98,	105,	111,	107,	116,	122,	123,	129,	137,	137,	142,	148,	150,	153,	155,	157,	156,	158,	158,	158,	159,	164,	166,	158,	133,	156,	144,	98,	138,	119,	81,	115,	111,	75,	103,	106,	82,	99,	107,	97,	109,	122,	113,	126,	137,	136,	138,	150,	149,	144,	149,	151,	135,	132,	136,	112,	112,	114,	93,	96,	100,	90,	99,	106,	102,	113,	120,	122,	128,	139,	143,	147,	155,	159,	159,	164,	165,	162,	164,	165,	164,	166,	173,	164,	131,	158,	151,	89,	135,	124,	73,	106,	118,	70,	93,	110,	85,	96,	113,	104,	107,	125,	121,	127,	136,	141,	140,	146,	150,	147,	141,	147,	139,	121,	132,	118,	102,	111,	97,	92,	101,	97,	101,	110,	111,	118,	123,	130,	130,	137,	146,	144,	150,	156,	157,	157,	159,	161,	156,	156,	166,	163,	171,	164,	122,	170,	143,	84,	143,	118,	66,	113,	117,	67,	97,	109,	88,	98,	118,	107,	116,	127,	128,	135,	135,	145,	145,	143,	149,	148,	134,	141,	130,	114,	120,	108,	98,	100,	100,	95,	99,	106,	108,	113,	125,	125,	130,	141,	139,	144,	152,	154,	153,	162,	159,	156,	160,	155,	157,	164,	162,	176,	172,	116,	162,	165,	70,	127,	137,	56,	91,	130,	64,	80,	114,	91,	88,	115,	114,	116,	127,	132,	141,	134,	146,	154,	141,	144,	152,	133,	131,	130,	110,	103,	106,	94,	89,	100,	94,	97,	110,	111,	114,	128,	130,	133,	140,	145,	147,	152,	158,	155,	155,	161,	156,	151,	159,	159,	160,	172,	191,	140,	128,	199,	106,	82,	157,	97,	51,	125,	107,	61,	95,	114,	93,	94,	117,	126,	120,	119,	152,	140,	123,	159,	152,	124,	147,	150,	113,	119,	128,	97,	96,	109,	92,	97,	107,	109,	114,	118,	128,	130,	129,	141,	138,	135,	147,	146,	145,	151,	149,	148,	145,	149,	151,	152,	166,	175,	193,	134,	142,	204,	92,	92,	161,	86,	54,	132,	97,	63,	95,	114,	98,	98,	118,	139,	126,	117,	164,	147,	118,	159,	158,	115,	135,	147,	102,	100,	117,	88,	85,	104,	94,	100,	109,	119,	128,	128,	138,	148,	140,	142,	152,	144,	143,	154,	151,	139,	149,	145,	135,	149,	155,	159,	171,	205,	144,	123,	212,	113,	67,	152,	110,	39,	110,	114,	68,	79,	116,	117,	100,	106,	153,	149,	107,	157,	178,	113,	135,	174,	120,	103,	142,	111,	79,	104,	94,	80,	91,	99,	109,	110,	119,	140,	133,	133,	151,	144,	137,	149,	148,	138,	144,	149,	135,	136,	145,	138,	142,	158,	170,	181,	209,	141,	138,	208,	103,	71,	140,	98,	40,	100,	110,	74,	77,	119,	131,	109,	112,	164,	161,	112,	156,	183,	120,	120,	161,	120,	90,	117,	104,	82,	84,	95,	105,	93,	105,	136,	126,	125,	150,	146,	134,	141,	149,	140,	136,	146,	142,	134,	136,	138,	136,	139,	148,	161,	174,	190,	223,	151,	126,	212,	114,	47,	124,	103,	27,	79,	112,	83,	70,	115,	148,	130,	106,	163,	187,	117,	133,	183,	128,	94,	136,	126,	82,	94,	102,	97,	85,	92,	126,	117,	105,	143,	145,	125,	140,	146,	135,	132,	137,	138,	136,	132,	138,	140,	132,	137,	145,	142,	154,	172,	184,	206,	230,	139,	135,	209,	97,	34,	115,	94,	22,	76,	122,	99,	81,	127,	171,	145,	109,	166,	192,	111,	114,	168,	122,	75,	112,	116,	82,	82,	99,	115,	102,	100,	139,	138,	113,	135,	143,	123,	122,	131,	130,	128,	131,	138,	139,	133,	137,	141,	136,	136,	147,	155,	163,	180,	191,	225,	185,	98,	175,	157,	29,	58,	123,	56,	49,	117,	141,	107,	108,	161,	183,	122,	108,	177,	148,	76,	119,	146,	91,	84,	119,	115,	105,	103,	117,	140,	110,	106,	145,	126,	103,	126,	125,	118,	121,	126,	137,	139,	132,	140,	148,	135,	136,	141,	136,	142,	146,	155,	175,	183,	202,	218,	121,	120,	181,	83,	24,	106,	104,	57,	97,	149,	141,	113,	128,	168,	149,	87,	114,	156,	93,	71,	132,	130,	91,	111,	134,	133,	124,	114,	138,	139,	97,	110,	135,	104,	97,	117,	121,	124,	123,	134,	153,	145,	135,	147,	147,	131,	132,	138,	142,	147,	152,	175,	191,	199,	216,	140,	110,	172,	99,	20,	86,	112,	66,	93,	153,	165,	139,	141,	176,	167,	97,	91,	136,	90,	44,	91,	115,	90,	102,	132,	151,	150,	130,	148,	156,	115,	107,	121,	103,	92,	99,	115,	130,	129,	133,	160,	160,	140,	139,	142,	133,	125,	125,	140,	148,	142,	164,	192,	201,	193,	122,	128,	168,	83,	36,	111,	119,	84,	116,	167,	169,	138,	135,	170,	149,	79,	89,	130,	80,	50,	96,	111,	98,	101,	121,	153,	135,	115,	143,	144,	104,	107,	124,	111,	102,	113,	130,	142,	135,	142,	166,	156,	137,	144,	145,	133,	127,	140,	149,	148,	153,	175,	194,	202,	132,	102,	166,	112,	30,	83,	128,	94,	101,	148,	177,	157,	132,	154,	176,	107,	71,	124,	111,	56,	78,	106,	101,	100,	101,	133,	147,	115,	118,	144,	120,	98,	113,	116,	108,	110,	116,	136,	144,	135,	148,	162,	148,	139,	149,	147,	139,	142,	148,	155,	163,	169,	188,	198,	129,	108,	155,	105,	47,	83,	116,	103,	106,	133,	167,	155,	133,	148,	165,	118,	89,	114,	110,	80,	83,	97,	111,	108,	101,	126,	138,	123,	116,	127,	126,	115,	106,	111,	119,	114,	113,	128,	141,	141,	141,	149,	155,	146,	138,	147,	151,	145,	148,	163,	171,	177,	189,	186,	131,	118,	141,	98,	59,	86,	109,	107,	109,	124,	153,	150,	129,	136,	153,	121,	103,	113,	108,	96,	92,	90,	106,	114,	104,	112,	134,	129,	116,	119,	124,	124,	112,	108,	120,	126,	115,	124,	139,	143,	141,	142,	148,	151,	144,	145,	153,	156,	156,	163,	174,	184,	191,	165,	126,	137,	132,	91,	77,	98,	109,	113,	107,	120,	143,	142,	125,	129,	134,	125,	115,	109,	106,	112,	102,	94,	105,	113,	108,	113,	118,	119,	124,	120,	117,	125,	123,	119,	123,	124,	128,	132,	133,	138,	144,	142,	140,	142,	141,	142,	142,	142,	145,	154,	159,	167,	173,	161,	144,	141,	135,	126,	113,	111,	121,	127,	119,	118,	124,	124,	118,	115,	115,	113,	117,	120,	122,	114,	110,	117,	119,	111,	108,	113,	116,	113,	109,	112,	118,	118,	118,	121,	123,	124,	127,	130,	131,	130,	134,	138,	138,	135,	139,	143,	145,	142,	146,	153,	155,	162,	168,	167,	161,	154,	153,	151,	137,	128,	131,	130,	123,	119,	115,	114,	112,	105,	104,	106,	105,	110,	114,	106,	102,	110,	114,	107,	105,	107,	112,	112,	108,	109,	114,	116,	119,	121,	123,	127,	129,	132,	132,	133,	135,	141,	143,	140,	140,	147,	148,	145,	144,	151,	159,	162,	166,	167,	158,	148,	149,	149,	134,	127,	131,	133,	124,	118,	118,	119,	110,	104,	108,	110,	107,	111,	111,	104,	104,	115,	113,	105,	105,	111,	115,	112,	108,	112,	118,	117,	118,	121,	123,	124,	125,	126,	128,	134,	136,	138,	139,	142,	143,	147,	146,	145,	148,	151,	157,	162,	166,	168,	162,	149,	145,	150,	140,	128,	128,	130,	127,	122,	116,	115,	112,	105,	106,	110,	108,	109,	112,	106,	103,	109,	112,	108,	104,	107,	115,	116,	110,	112,	116,	118,	119,	121,	123,	125,	125,	128,	129,	130,	136,	138,	138,	142,	146,	146,	147,	146,	146,	151,	156,	160,	165,	170,	169,	156,	145,	151,	150,	133,	126,	131,	130,	125,	122,	116,	115,	110,	107,	109,	110,	107,	111,	110,	102,	105,	113,	107,	104,	105,	110,	115,	112,	110,	114,	117,	119,	123,	121,	121,	124,	127,	128,	129,	130,	135,	138,	138,	140,	144,	144,	143,	144,	146,	151,	156,	160,	165,	171,	168,	154,	147,	152,	148,	131,	125,	129,	129,	124,	119,	116,	114,	107,	105,	110,	108,	107,	113,	109,	101,	106,	113,	108,	104,	105,	111,	116,	113,	111,	116,	119,	122,	124,	123,	122,	127,	131,	129,	129,	131,	134,	135,	136,	140,	143,	143,	141,	141,	146,	149,	151,	155,	160,	167,	171,	161,	145,	148,	153,	137,	122,	127,	128,	128,	125,	117,	115,	113,	107,	106,	109,	104,	108,	113,	103,	100,	112,	112,	104,	101,	105,	113,	116,	110,	110,	117,	121,	123,	122,	120,	124,	130,	130,	128,	132,	135,	137,	136,	136,	141,	142,	142,	141,	143,	146,	150,	153,	155,	160,	167,	172,	163,	143,	144,	155,	140,	123,	127,	131,	127,	125,	118,	117,	114,	106,	107,	110,	105,	109,	114,	105,	99,	110,	115,	104,	100,	107,	118,	119,	110,	112,	117,	119,	122,	123,	121,	125,	128,	131,	130,	128,	132,	136,	133,	132,	138,	141,	141,	140,	140,	144,	148,	149,	150,	155,	162,	170,	172,	154,	139,	150,	153,	132,	122,	129,	131,	128,	122,	117,	117,	110,	103,	108,	110,	107,	112,	113,	101,	104,	116,	111,	102,	102,	113,	121,	116,	110,	115,	121,	121,	122,	123,	123,	127,	128,	128,	130,	132,	134,	132,	129,	133,	140,	141,	139,	139,	142,	144,	145,	145,	147,	150,	158,	165,	171,	169,	152,	146,	156,	148,	129,	129,	133,	128,	124,	122,	120,	114,	103,	100,	108,	107,	104,	108,	105,	99,	108,	114,	106,	102,	108,	114,	118,	114,	112,	119,	120,	117,	121,	127,	125,	125,	126,	128,	131,	133,	131,	130,	131,	135,	137,	135,	135,	138,	140,	139,	140,	143,	146,	148,	151,	158,	166,	172,	169,	152,	147,	156,	147,	130,	129,	133,	126,	123,	121,	117,	110,	100,	97,	102,	101,	100,	105,	102,	98,	106,	111,	106,	105,	112,	116,	118,	117,	120,	124,	120,	118,	124,	128,	125,	126,	127,	129,	131,	131,	131,	130,	130,	132,	133,	134,	136,	136,	136,	137,	141,	143,	143,	148,	150,	154,	160,	167,	171,	170,	157,	152,	155,	146,	135,	137,	133,	126,	124,	122,	117,	108,	99,	95,	98,	96,	96,	102,	103,	100,	105,	110,	108,	110,	113,	115,	118,	122,	124,	126,	126,	125,	127,	127,	126,	128,	130,	131,	131,	131,	132,	132,	130,	131,	131,	132,	133,	135,	138,	138,	141,	142,	143,	144,	144,	146,	148,	150,	154,	156,	158,	154,	150,	148,	143,	136,	134,	133,	131,	128,	128,	124,	119,	113,	106,	103,	100,	98,	97,	99,	100,	101,	103,	103,	105,	107,	110,	113,	116,	120,	125,	127,	129,	131,	132,	132,	132,	133,	135,	135,	134,	137,	137,	134,	134,	133,	133,	133,	134,	135,	135,	137,	137,	139,	138,	136,	135,	134,	133,	134,	134,	133,	132,	132,	131,	131,	131,	130,	130,	130,	129,	131,	131,	129,	130,	128,	128,	127,	126,	125,	124,	123,	122,	121,	119,	119,	120,	119,	120,	121,	120,	121,	121,	122,	121,	121,	122,	123,	123,	123,	123,	123,	125,	125,	126,	126,	128,	129,	128,	130,	131,	131,	132,	133,	133,	134,	134,	133,	133,	132,	132,	132,	132,	131,	130,	130,	131,	131,	130,	129,	130,	129,	128,	127,	127,	128,	129,	129,	130,	130,	131,	131,	131,	130,	131,	131,	131,	131,	131,	128,	129,	129,	127,	125,	125,	125,	124,	124,	122,	122,	122,	121,	122,	122,	124,	125,	126,	126,	126,	127,	127,	128,	128,	127,	128,	127,	128,	131,	130,	130,	130,	130,	130,	128,	128,	129,	129,	128,	128,	128,	127,	127,	127,	127,	128,	127,	128,	128,	128,	127,	127,	127,	128,	127,	126,	127,	129,	128,	129,	129,	130,	131,	129,	128,	129,	130,	129,	130,	129,	130,	131,	131,	131,	130,	130,	129,	130,	131,	129,	129,	128,	128,	126,	127,	126,	126,	127,	125,	125,	125,	124,	123,	124,	124,	123,	124,	126,	126,	127,	127,	128,	127,	128,	128,	129,	129,	129,	129,	129,	129,	128,	128,	128,	127,	127,	126,	127,	129,	128,	128,	129,	129,	129,	130,	130,	130,	131,	131,	130,	130,	130,	129,	130,	130,	130,	129,	129,	129,	129,	129,	128,	128,	128,	127,	127,	126,	127,	126,	126,	126,	126,	127,	127,	126,	127,	127,	127,	126,	128,	128,	128,	128,	129,	129,	129,	128,	130,	129,	129,	128,	129,	128,	128,	128,	128,	127,	127,	127,	129,	128,	128,	129,	127,	128,	127,	128,	128,	128,	129,	129,	129,	130,	130,	129,	129,	129,	129,	128,	128,	127,	128,	127,	127,	127,	127,	126,	126,	126,	125,	125,	125,	126,	127,	127,	127,	127,	128,	129,	129,	130,	129,	129,	130,	129,	129,	130,	129,	129,	128,	128,	128,	128,	127,	127,	128,	128,	128,	128,	129,	128,	128,	128,	127,	127,	128,	129,	129,	129,	130,	128,	129,	128,	129,	129,	128,	128,	129,	128,	128,	128,	128,	128,	128,	127,	127,	127,	127,	127,	128,	128,	129,	128,	129,	129,	127,	128,	129,	129,	128,	129,	130,	129,	128,	128,	128,	128,	127,	128,	128,	128,	128,	128,	127,	127,	125,	125,	126,	124,	125,	126,	127,	127,	126,	128,	127,	127,	127,	128,	128,	128,	127,	128,	127,	127,	127,	128,	127,	127,	126,	127,	126,	127,	127,	126,	128,	127,	128,	128,	128,	129,	130,	129,	129,	129,	130,	130,	130,	129,	130,	130,	130,	130,	130,	130,	130,	129,	129,	128,	128,	127,	128,	127,	127,	127,	126,	127,	127,	127,	127,	128,	127,	128,	128,	128,	127,	129,	129,	128,	129,	129,	129,	129,	129,	129,	129,	128,	129,	129,	129,	129,	127,	128,	129,	128,	128,	128,	129,	129,	128,	128,	129,	129,	129,	129,	129,	129,	129,	128,	129,	129,	128,	128,	128,	128,	127,	126,	126,	127,	127,	126,	127,	127,	126,	126,	125,	126,	127,	126,	127,	127,	127,	126,	126,	126,	128,	127,	127,	126,	127,	128,	128,	128,	128,	128,	128,	129,	129,	129,	128,	129,	130,	130,	129,	128,	130,	129,	129,	130,	130,	130,	129,	129,	129,	129,	129,	129,	129,	128,	128,	128,	128,	128,	127,	128,	128,	128,	128,	128,	128,	127,	128,	127,	126,	126,	127,	127,	126,	128,	127,	127,	128,	127,	127,	128,	127,	127,	128,	128,	128,	128,	128,	128,	127,	127,	128,	128,	128,	128,	129,	129,	128,	128,	129,	129,	129,	129,	130,	130,	129,	130,	129,	129,	129,	128,	128,	129,	129,	128,	128,	129,	128,	128,	128,	127,	127,	127,	127,	127,	128,	127,	127,	127,	126,	126,	127,	127,	128,	127,	128,	128,	128,	129,	128,	127,	128,	129,	129,	129,	129,	128,	128,	128,	128,	128,	127,	127,	128,	127,	127,	128,	128,	128,	127,	129,	128,	128,	129,	129,	129,	129,	128,	128,	128,	128,	128,	128,	128,	128,	128,	128,	129,	128,	127,	128,	127,	127,	127,	127,	126,	126,	127,	126,	126,	127,	126,	127,	127,	127,	127,	129,	128,	128,	128,	128,	128,	129,	129,	129,	130,	129,	130,	129,	130,	129,	130,	130,	130,	129,	130,	130,	129,	129,	128,	128,	128,	128,	128,	128,	128,	128,	128,	128,	128,	127,	127,	128,	127,	127,	127,	128,	127,	127,	127,	126,	127,	127,	127,	127,	127,	127,	127,	127,	127,	127,	127,	128,	127,	128,	128,	128,	128,	128,	128,	128,	127,	128,	128,	128,	128,	129,	129,	128,	128,	129,	128,	129,	128,	129,	129,	128,	129,	129,	128,	129,	128,	129,	129,	129,	129,	128,	128,	128,	127,	128,	127,	127,	127,	128,	128,	128,	128,	128,	127,	127,	127,	127,	128,	127,	128,	128,	128,	127,	127,	127,	128,	128,	129,	128,	128,	128,	129,	128,	128,	129,	129,	129,	129,	129,	130,	129,	129,	128,	128,	128,	129,	129,	128,	129,	129,	128,	128,	127,	127,	128,	128,	128,	128,	127,	128,	127,	128,	127,	127,	128,	127,	127,	127,	126,	127,	127,	126,	126,	126,	126,	127,	126,	127,	126,	127,	127,	127,	128,	128,	127,	128,	129,	128,	127,	128,	128,	128,	129,	128,	129,	129,	129,	129,	130,	129,	129,	130,	129,	128,	128,	130,	129,	130,	129,	129,	130,	129,	129,	129,	128,	128,	128,	128,	128,	127,	128,	127,	128,	128,	126,	128,	127,	127,	128,	127,	127,	127,	128,	128,	127,	128,	128,	128,	127,	127,	128,	129,	127,	127,	128,	128,	128,	128,	128,	128,	129,	127,	127,	128,	127,	127,	131,	130,	127,	130,	128,	130,	129,	127,	127,	128,	129,	129,	128,	129,	122,	120,	119,	122,	125,	122,	128,	133,	130,	129,	128,	121,	119,	122,	124,	121,	125,	125,	126,	128,	135,	139,	140,	140,	146,	147,	143,	140,	141,	137,	133,	131,	127,	123,	119,	118,	114,	115,	113,	114,	116,	118,	119,	124,	126,	128,	130,	131,	132,	134,	132,	131,	133,	134,	133,	133,	133,	135,	135,	134,	135,	136,	135,	136,	136,	137,	137,	138,	136,	136,	139,	135,	128,	125,	119,	109,	111,	114,	116,	116,	124,	132,	134,	132,	133,	137,	134,	131,	136,	138,	134,	133,	133,	128,	122,	118,	115,	112,	107,	107,	112,	113,	115,	122,	128,	129,	132,	140,	137,	133,	137,	136,	130,	131,	130,	130,	127,	124,	125,	129,	122,	121,	131,	132,	128,	130,	135,	130,	126,	125,	123,	116,	109,	112,	114,	107,	109,	117,	114,	115,	123,	124,	124,	127,	130,	134,	133,	135,	140,	143,	144,	145,	147,	146,	146,	148,	145,	141,	140,	143,	145,	142,	143,	149,	148,	150,	157,	152,	115,	108,	131,	98,	63,	91,	105,	75,	85,	120,	119,	105,	125,	152,	145,	124,	142,	161,	135,	113,	135,	137,	102,	98,	122,	112,	94,	106,	121,	119,	114,	126,	142,	134,	126,	139,	132,	116,	119,	122,	116,	118,	124,	128,	134,	134,	136,	140,	138,	135,	138,	137,	138,	142,	146,	148,	149,	150,	155,	151,	149,	152,	153,	154,	159,	174,	177,	169,	145,	129,	133,	106,	67,	82,	90,	64,	72,	106,	102,	92,	121,	145,	134,	129,	151,	161,	139,	130,	148,	137,	108,	113,	126,	103,	89,	109,	116,	101,	110,	131,	134,	128,	140,	153,	147,	140,	145,	150,	130,	117,	127,	113,	94,	95,	103,	101,	101,	115,	130,	129,	134,	150,	145,	131,	139,	143,	129,	130,	137,	132,	133,	135,	136,	134,	127,	131,	133,	128,	131,	140,	142,	144,	160,	162,	159,	179,	174,	181,	194,	151,	117,	145,	120,	51,	75,	95,	48,	54,	107,	97,	81,	118,	155,	139,	129,	164,	179,	142,	137,	169,	142,	102,	123,	129,	87,	85,	113,	99,	84,	110,	125,	116,	123,	143,	147,	140,	147,	156,	146,	136,	140,	131,	109,	104,	106,	92,	94,	109,	109,	115,	132,	137,	141,	147,	145,	144,	141,	132,	138,	132,	123,	131,	127,	122,	130,	128,	125,	129,	126,	128,	132,	132,	136,	138,	143,	147,	146,	151,	157,	150,	153,	165,	161,	169,	181,	146,	121,	152,	121,	70,	100,	105,	61,	80,	115,	93,	84,	121,	134,	116,	124,	152,	146,	127,	144,	156,	129,	122,	143,	124,	103,	120,	120,	98,	106,	119,	109,	112,	126,	126,	125,	135,	139,	137,	140,	144,	141,	136,	129,	125,	118,	110,	112,	109,	107,	113,	114,	116,	125,	125,	129,	135,	134,	138,	142,	141,	142,	143,	141,	140,	138,	133,	131,	127,	123,	120,	120,	120,	121,	125,	130,	133,	139,	142,	146,	150,	152,	154,	157,	156,	159,	168,	164,	173,	147,	116,	154,	114,	71,	111,	101,	58,	93,	112,	81,	91,	125,	120,	112,	134,	144,	138,	135,	151,	147,	131,	140,	145,	123,	121,	130,	114,	104,	117,	111,	102,	117,	117,	110,	121,	129,	125,	131,	141,	137,	138,	145,	141,	136,	133,	126,	116,	113,	112,	107,	109,	114,	114,	118,	124,	126,	128,	132,	135,	136,	139,	144,	143,	143,	144,	141,	135,	133,	129,	122,	122,	121,	118,	119,	122,	123,	126,	131,	133,	138,	141,	143,	146,	148,	150,	151,	151,	148,	148,	147,	144,	153,	150,	156,	134,	116,	150,	105,	88,	123,	97,	75,	111,	112,	87,	109,	124,	117,	119,	136,	136,	137,	138,	145,	140,	132,	139,	135,	122,	124,	126,	109,	112,	117,	105,	107,	118,	112,	111,	123,	123,	122,	134,	134,	133,	140,	141,	136,	137,	134,	129,	127,	119,	119,	115,	113,	117,	117,	119,	124,	128,	130,	135,	135,	137,	139,	137,	136,	136,	135,	132,	132,	130,	127,	126,	126,	124,	121,	121,	123,	122,	124,	129,	130,	133,	136,	137,	141,	141,	140,	141,	141,	139,	140,	139,	138,	136,	134,	135,	133,	137,	132,	133,	142,	138,	142,	140,	123,	137,	127,	106,	123,	113,	99,	110,	115,	102,	109,	114,	111,	113,	119,	122,	124,	128,	132,	134,	133,	137,	137,	134,	135,	135,	129,	128,	128,	121,	120,	121,	117,	117,	120,	119,	119,	124,	125,	126,	131,	129,	128,	133,	128,	127,	130,	127,	128,	129,	128,	130,	129,	129,	130,	128,	129,	130,	127,	130,	130,	128,	130,	131,	130,	132,	131,	132,	132,	131,	132,	130,	129,	130,	127,	127,	127,	126,	125,	127,	126,	126,	127,	128,	129,	131,	133,	133,	135,	135,	137,	138,	137,	137,	141,	131,	133,	138,	125,	130,	132,	122,	127,	128,	125,	130,	131,	133,	131,	130,	135,	125,	126,	130,	121,	119,	124,	118,	115,	119,	115,	112,	115,	118,	116,	120,	122,	124,	127,	131,	132,	134,	136,	136,	136,	135,	135,	131,	131,	129,	126,	124,	125,	122,	120,	122,	120,	118,	120,	121,	121,	123,	127,	127,	130,	132,	133,	132,	135,	135,	133,	132,	134,	132,	132,	131,	129,	129,	129,	127,	125,	126,	124,	125,	125,	126,	126,	127,	129,	128,	130,	129,	130,	131,	132,	131,	130,	131,	129,	129,	129,	128,	128,	129,	128,	128,	129,	130,	133,	134,	133,	134,	134,	136,	135,	134,	135,	131,	131,	133,	126,	126,	129,	125,	125,	128,	125,	126,	129,	129,	129,	131,	131,	129,	129,	131,	127,	125,	126,	121,	121,	120,	118,	116,	119,	118,	120,	121,	122,	123,	125,	127,	127,	129,	131,	131,	129,	132,	130,	127,	128,	127,	125,	125,	127,	125,	126,	126,	127,	126,	128,	128,	129,	132,	131,	133,	133,	134,	133,	130,	130,	127,	126,	127,	126,	125,	127,	125,	124,	127,	124,	125,	126,	127,	129,	129,	130,	131,	131,	131,	131,	129,	129,	129,	129,	130,	129,	129,	129,	127,	128,	128,	127,	129,	129,	129,	129,	131,	131,	131,	132,	132,	133,	133,	133,	135,	133,	134,	132,	129,	130,	126,	126,	125,	124,	123,	123,	125,	125,	125,	129,	124,	126,	132,	127,	131,	132,	128,	131,	131,	127,	130,	128,	126,	128,	127,	124,	125,	124,	122,	123,	123,	122,	124,	124,	125,	126,	125,	126,	126,	125,	125,	126,	126,	126,	126,	126,	126,	127,	127,	128,	128,	127,	129,	130,	129,	131,	131,	130,	132,	130,	130,	131,	129,	129,	129,	128,	130,	129,	129,	129,	128,	129,	129,	128,	129,	129,	129,	131,	129,	128,	130,	127,	127,	128,	128,	127,	128,	127,	126,	127,	126,	126,	127,	126,	127,	128,	128,	129,	128,	127,	130,	130,	130,	130,	131,	130,	131,	131,	130,	129,	128,	128,	129,	129,	128,	128,	128,	126,	129,	127,	127,	128,	128,	128,	129,	128,	127,	129,	126,	125,	128,	126,	126,	128,	126,	126,	128,	126,	126,	126,	125,	128,	128,	127,	130,	127,	127,	130,	126,	127,	128,	126,	127,	128,	128,	129,	129,	128,	129,	127,	127,	128,	128,	129,	128,	127,	128,	128,	128,	129,	128,	128,	130,	128,	128,	129,	126,	127,	129,	126,	128,	128,	128,	129,	129,	129,	129,	129,	129,	128,	129,	130,	130,	130,	129,	129,	129,	129,	128,	128,	127,	128,	128,	127,	127,	127,	126,	127,	126,	127,	127,	128,	128,	128,	129,	128,	128,	127,	127,	128,	127,	127,	128,	128,	127,	127,	127,	128,	127,	126,	126,	126,	127,	127,	127,	128,	128,	128,	128,	129,	127,	128,	128,	128,	128,	129,	128,	129,	128,	128,	128,	130,	128,	129,	129,	128,	128,	128,	129,	128,	128,	129,	129,	129,	129,	129,	129,	128,	128,	128,	128,	128,	128,	129,	129,	128,	128,	128,	128,	128,	128,	127,	128,	128,	128,	128,	129,	128,	128,	129,	128,	129,	129,	128,	128,	129,	128,	128,	128,	128,	127,	127,	127,	128,	128,	127,	127,	127,	128,	127,	127,	127,	127,	127,	127,	129,	128,	127,	128,	127,	126,	127,	128,	128,	128,	128,	129,	129,	128,	128,	127,	128,	129,	128,	128,	127,	128,	128,	127,	127,	127,	127
  129,  140,    127,    124,    121,    144,    147,    111,    93,     126,    140,    137,    134,    130,    132,    127,    145,    135,    112,    119,    139,    135,    110,    118,    136,    161,    99,     87,     125,    131,    140,    129,    127,    123,    125,    148,    143,    113,    130,    145,    140,    118,    108,    149,    168,    118,     81,    124,    139,    135,    121,    124,    126,132,150,124,114,128,143,143,98,114,155,176,113,64,127,148,124,115,113,136,143,143,118,109,137,140,137,98,111,161,182,126,73,137,157,124,96,110,135,152,141,101,112,140,141,128,96,123,174,169,122,63,142,161,109,110,108,162,162,111,101,123,142,128,117,81,152,154,186,112,71,163,142,86,124,122,172,153,89,123,136,124,129,104,87,172,138,185,94,90,177,120,80,142,113,189,127,87,145,142,107,143,108,99,169,118,188,67,94,195,100,96,139,110,200,114,84,168,113,109,148,84,140,144,128,216,38,141,179,71,136,105,136,214,68,146,148,97,137,114,102,132,136,150,169,24,173,141,80,150,88,164,168,56,185,111,131,149,108,127,110,138,181,114,67,203,92,122,114,103,189,119,96,186,66,173,80,167,101,119,164,158,97,65,205,81,127,114,138,177,89,138,160,79,163,103,168,80,128,159,176,53,160,140

}; //6554 samples store in ROM
void main(void)
{
    
	 M8C_EnableGInt ; // Uncomment this line to enable Global Interrupts
	// Insert your main routine code here.
	Counter16_1_EnableInt();                 
    
    Counter16_1_Start();   
	

	DAC8_1_Start(DAC8_1_HIGHPOWER); // Start DAC8 in HIGH power mode

	Pointer=0;

	
}
#pragma interrupt_handler Counter_ISR;

void Counter_ISR(void)
{
// Update the DAC with the value in lookup table pointed the variable Pointer
DAC8_1_WriteBlind(caliente[Pointer]);
// Increment pointer
Pointer++;

if (Pointer >= 9051) Pointer = 0;
} ...
Respuesta
¿Tienes una mejor respuesta a este tema? ¿Quieres hacerle una pregunta a nuestra comunidad y sus expertos? Registrate

Foros de Electrónica » Diseño digital » Microcontroladores y sistemas embebidos

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2011, Crawlability, Inc.