Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Recent content by ldril

  1. L

    PIC and Neural Network?

    I think (I have never tried so don't really know it) it's possible. However there are some important things to consider - most calculations are floating point operations, so you either need FP code, or find a way to use integer operations with enough precision. Next, depending on what you...
  2. L

    Unicode on PIC programming.

    Maybe this will work: char a[]="\0H\0e\0l\0l....\0l\0d\0"; // An extra zero at the end for unicode string terminator (the compiler should add the other zero I presume) But I can't guarantee that this will work. BR
  3. L

    interrupt vs polling

    Nice analogy :wink:, but I would say that is the analogy of polling instead of using the interrupt. The interrupt analogy would be if right after the mailman deposits the mail you'll be instantly teleported to your mailbox, pick up the mail and then instantly return to what you were doing...
  4. L

    Soft USB on PIC

    Hi! There is a project that uses an Atmel chip to communicate with a PC on USB. All the communication is handled in software. The link is: http://www.cesko.host.sk/IgorPlugUSB_RS232/IgorPlug-USB%20(AVR)%20RS232_eng.htm Does anyone know of a similar project using a PIC? The user says...
  5. L

    M-Bus = ?

    One meaning of MBUS is a serial protocol for communication between a PC and a Nokia phone.
  6. L

    interrupt vs polling

    You need to check the flag when you have multiple interrupt sources (for example timer and portb change). Since all interrupts jump to the same location you'll have to test the flag to know which interrupt was triggered. It's not polling, just determining the cause of the interrupt. If you...
  7. L

    Whiskers

    Hi! I don't know how basic works, so I'm not very sure about the commands you use, but could it be that the forward commands take a longer time to execute and that will make the whisker to be polled only at 4 seconds intervals? BR
  8. L

    pic and alarm

    Hi! You can find an example of driving a display here **broken link removed** You can also find there different circuits to get your inspiration from. Also you can search on google, I think you'll find a lot of digital clock designs. BR
  9. L

    Req: USB pen SW interface

    I don't know about implementing USB host directly in a PIC. It could be possible, but I think you need at least a level converter. However Philips makes some USB chips with much USB logic inside. I looked at a USB device with serial interface (PDIUSBD11), no need for a large number of pins...
  10. L

    homebrew programming of pic16f628

    Good for you! A blinking led program is the best way to start programming a PIC :) Keep up the good work, even at that young age! BR ldril
  11. L

    Speech synthesis using pic

    Hi! What you want is pretty hard because of the limitations of PIC memory. You can try to use the method described here **broken link removed** to store the sounds. Maybe it will work for you. However you'll have to record all the sounds of a language and this could fill up your memory...
  12. L

    Bank Bit Error

    The message you're referring to is just a warning message and not quite an error message. It basically tells you to be sure you've selected the right bank before accessing the register. For example before accessing TRIS registers (in bank 1) you have to set RP0 in STATUS register. Of course you...
  13. L

    Begginer Circuit

    The easiest to get by with almost no external hardware at all is PIC 16F628. You can program it to use internal osc, and also to use the MCLR pin as I/O. In this way you need the PIC, a LED and a resistor to get the flashing LED program up and running. With 16F84 you can't do this. The best...
  14. L

    Joystick to graphics interface?

    A basic joystick contains two potentiometers, one for the X and one for the Y axis. Inside the computer each potentiometer loads a capacitor and the time of loading is measured in software. The longer the time the bigger the value of the potentiometer. Thus the position of the joystick can be...
  15. L

    Programming the 16F628

    I don't think a resitor is needed. I can't tell for sure. Anyway I didn't use one and didn't have problems. Another thing - this may be needed only for the first programming since there is a fuse (control bit) that controls the programming mode. This fuse allows by default LVP. If at the...

Latest threads

New Articles From Microcontroller Tips

Back
Top