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.
Open it with 'Paint' and 'save as...' .bmp or .jpg
Remember to choose from Menu: Image-Attributes-Black and white if you want to put it in microcontroller
Re: help on ethernet
You can install 'ethereal' program and you'll see 'live' the incoming/outgoing ethernet packets from your network card.
Based on this program, I understood better the TCP/IP protocols and I made an ethernet module (PIC18F242 and ENC28J60) with ARP, PING, UDP, TCP implemented.
picbasic pro serout problem
Maybe you have to make PortE.0, PortE.1 digital inputs, not analog (by default they are analog).
Adcon1=0x02 or something else (see the datasheet)
pgm89v3.exe
You have to find a small program - AllowIO - which gives you access to ports in winXP.
... and then create a ".bat" file like this:
-----------
@echo off
AllowIo 0x42 0x43 0x61 0x378 0x278 0x3BC pgm89v3.exe
-----------
Here is the schematic, it was a more complex project with PC interface to store some logs and display switches states, also to drive relays and flash leds ... but you can see how to connect only what you want to ...
I've made an application with 1 analog multiplexer CD4067 - 16 inputs for switches and 1 output which is connected to microcontroller through 1 comparator lm339 (one input is at 2.5 v and the other input to multiplexer); ... so I have 16 switches, some of them at over 100 m distance and works...
You have to tell which port do you use:
procedure outport(port:byte;data:byte);
begin
asm
push ax
push dx
mov eax,data
mov edx,port
out dx,ax
pop dx
pop ax
end;
end;
procedure inport(port:byte;var data:byte);
begin
asm
push...
matrix keypad schematic
You can use 2 pcf8574 which are i2c I/O expander;
-one configured with all 8 lines as inputs and second with all outputs, as they form together 8*8 dot matrix; you can use, of course, just 4*4 of them.
picbasic pro sound
well, you have to calculate the frequencies and make a parallel:
-for picbasic: 0=silence; 1=78.74hz; 2=2*78.74; 3=3*.. and so on...
-for the piano there is no such as linearity and you must know the correspondence between keys and freqs (from some tables or a piano-player);
Re: subroutine for picbasic
If there is a single instruction after 'then', on the same line, you don't need 'endif';
... if you have more than one it is like this:
if portb.0=1 then
porta.0=1
portc.0=1
endif
if ... then
...
...
endif ; etc
Re: subroutine for picbasic
trisb=$FF
trisa=0
checking portb:
if portb.0=1 then porta.0=1
if portb.1=1 then porta.1=1 ; etc.
return
but it has no sense; if portb.0 returns to '0', porta.0 still remains on '1'.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.