SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on how to get your MSP JTAG programmer up and running.
By BurstCase
#45684
Dear programers,

I´ve written a code and made the hardware, but it did not function.
I´ve measure the signal with an oszilloscope and compare the signal with another signal that function. The good signal is based on a MCU from Infineon
(C515C-L) from a special educationboard.


My MSP430F1611 hardware includes a ST2323, MAX232 and a CMOS- IC 4069.

I will upload my MSP430F1611 code.

Regards,
BurstCase.

Don´t find a option to upload the code!?
By BurstCase
#45701
It´s difficult to describe my program without showing some c-language words!
By BurstCase
#45790
Ok, here it is


#include <msp430x16x.h>


void main(void)
{
unsigned char Strich[13]={0x11, 0x0A, 0x1B, 0x44, 0x4C, 0x1B, 0x47, 0x44, 0x00, 0x00, 0xEF, 0x7F, 0xDA};
int j=0, h=0, t=0;
int Quittierung=0;

Quittierung=0x15;

WDTCTL=WDTPW+WDTHOLD;
P3SEL|=0x30; //P3.4,5 =USART0 TXD/RXD
ME1|=UTXE0+URXE0; //Enable USART0 TXD/RXD
UCTL0|=CHAR; //8-bit character
UTCTL0|=SSEL0; //UCLK=ACLK
UBR00=0x03; //32k/9600 - 3.41
UBR10=0x00; //
UMCTL0=0x4A; //Modulation
UCTL0 &= ~SWRST; //Initialize USART state machine


while(1)
{

for(h=0x0000;h<0x000F;h++) //min. 2 seconds wait
{
for(t=0x0000;t<0xFFFF;t++); //min. 2 seconds wait
}

for(j=0;j<13;j++)
{
while(!(IFG1 & UTXIFG0));
TXBUF0=Strich[j];
while(!(U0TCTL & TXEPT));
}

while(URXIFG0==1);
Quittierung = RXBUF0; //ACK


}
}
By BurstCase
#45791
Hola forum,

OK, then I describe the signals I´ve measured (via UART):
I wanted to send 13 hexadecimal values from the MSP430F1611
and I´ve measured 13 Signals in a voltage range from -9V - +9V
Gnd as zero value.
As I said before: "Did not function with the eDIP240-7 Touch- Display".

The signals I´ve measured with the C515C-L board are also in the range
from -9V - +9V Gnd as zero value. But it has no 13 signals like from the MSP430.
I did not count them, but it could were round about 50 signals.
The Display show me a drawed line like the datasheet example said, now.
Have I done something wrong. Must be.


Regards,
BC.
By aditya
#49657
hi BurstCase, i am also using the same touch screen with a powerpc mpc565.

could u give me the basic knowledge of how to send signals and how to use it initially.
i am using rs232 as an interface. and doing programming in C.

so could you just give me some very basic information to getting started with this touchscreen and connecting it with my microcontroller.

thanx

addi
By BurstCase
#49663
:wink: I give you one code from C515C-L experience:

#include <REG515C.H>

void init_ser(void)
{
BD=1;
PCON=PCON|0x80;
SCON=0x50;
SRELL=0xDF;
SRELH=0x03;
}

sbit Button=P3^2;

main()
{

while(1)
{
while(Button==1);
init_ser();
SBUF=0x11;
while(TI==0);
TI=0;
SBUF=0x10;
while(TI==0);
TI=0;
SBUF=0x1B;
while(TI==0);
TI=0;
SBUF=0x41;
while(TI==0);
TI=0;
SBUF=0x4B;
while(TI==0);
TI=0;
SBUF=0x0A;
while(TI==0);
TI=0;
SBUF=0x0A;
while(TI==0);
TI=0;
SBUF=0x3C;
while(TI==0);
TI=0;
SBUF=0x28;
while(TI==0);
TI=0;
SBUF=0x05;
while(TI==0);
TI=0;
SBUF=0x00;
while(TI==0);
TI=0;
SBUF=0x43;
while(TI==0);
TI=0;
SBUF=0x53;
while(TI==0);
TI=0;
SBUF=0x74;
while(TI==0);
TI=0;
SBUF=0x61;
while(TI==0);
TI=0;
SBUF=0x72;
while(TI==0);
TI=0;
SBUF=0x74;
while(TI==0);
TI=0;
SBUF=0x00;
while(TI==0);
TI=0;
SBUF=0x96;
while(TI==0);
TI=0;

}
}


:lol: Not the longest thing! I send up to 49 Bytes. Each Hex value you see in the code is one Byte. The transmitting is like this, that a Hex value is 8 Bit and the controller give to the 8 Bit additionally one start Bit and one stop Bit.
By BurstCase
#49665
:idea: It´s a program for a switch.

Please, ask me, if you got a question!
By aditya
#49730
extreme thanx a lot brother. but i wanna know what to do initially. like i am programming my microcontroller to send and receive strings via interrupt which is almost finished. itz mpc565 ( Powerpc) and then would like to replace the hyperterminal with this touchscreen display. now which steps should i follow in this case from the beginning. ( coz i am only familier with making small buttons in display and burning it inside the display)

My coding is in C language. and i am using rs232 to transmit strings.
now which steps ( from the core basics) do i need to follow to get some initial things working in this display.

like say for example i press a button in display and the LED of the microcontroller would glow or something like that say for example i make a button of blinky 5 then it glows the LED of the controller for 5 times. and so on. but all in C language. plz help me up bro for the initial basics.
By aditya
#53222
hi burst case.. it would be nice if you would help me up with my question i asked you before. ;) if you dont mind :)