Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I have write the followings.
My target to have a square wave, where y=0 at 0<=x<=30, y=1 at 30<=x<=60 and y=0 at 60<=x<=100.
x = 30:0.1:60;
y = square(2*pi*25*x,100);
but it only works at 30<=x<=60
anybody can help this?
Yes, GrandAlf is correct.
U need to do some conversion on the signal level. one it, u may use MAX232 to interface from ur RS232 port to your PIC. Can check on the hardware connection, you may need around 4 capacitors. Then Tx and Rx line to the uC.
Inside the programming, try UART to test the...