182 Posted Topics
Re: [url]http://www.ustr.net/lcd001.shtml[/url] You need to see the diagram to understand what's happening. P0 is the low byte and P2 is the high byte of the address bus. 2A67H is placed on the address bus. ALE goes low and enables the latch. 67H goes through to the output of the latch. P0 … | |
Re: MOV C, P1.2 simply moves the value on the port pin to the carry. | |
Re: What's your question? You've just posted your assignment. | |
Re: Your circuit is wrong. You've no current limiting resistors at the base of the transistors, which causes the chip to drive them at it's maximum output high current, which will cause it to overheat. BJTs are current controllled, not voltage controlled. Also, the 68000 output high drops to 2.4V when … | |
Re: Are you able to obtain an amplitude for every sample from beginning to end from the wav file? That's the information you need. So if the wave is sampled at 44.1 KHz, you have an amplitude at every 1/44100 of a second. And if it's 16-bit PCM encoded, then the … | |
Re: [QUOTE]What i basically want to do, is interresting stuff like, controlling an rc car with your computer, or opening a light with your computer, etc.[/QUOTE] The parallel port is the most simplest port you'll find on a computer and could do those things for you. I'd start there (providing you … | |
Re: Depends on whether you want to use the mic insert on the PC or external hardware and send the voice info to the PC. The latter is probably doable for word recognition but not translating whole sentences. | |
Re: You'll need a 8051 with USB support, or a UART-USB converter. Try here for that. [url]http://www.ftdichip.com/[/url] | |
Re: A loopback test would verify that. [url]http://zone.ni.com/devzone/cda/tut/p/id/3450[/url] | |
Re: [quote=AtomicProGS9;304598]so what software should you really have, which one is better as well as packages and such. or is there another virus protection program that you can buy that is better than these two?[/quote] There is a free antivirus program available that's better than those two, according to recent antivirus … | |
Re: [QUOTE=Adak;663885] I understand your issue on portability. I have several programs that were written in Turbo C, and won't run in Visual C. So I continue to run them in Turbo C's IDE, or directly, as executables in Windows. They run great! Faster than ever, with newer hardware. The very … | |
Re: [QUOTE=np2100;662070]Yea but what goal are people working towards when they start with console? Do they continue to make applications in console?[/QUOTE] Some programs don't need human interaction directly. Just look at some of the programs that make up the software installed on your computer, or belong to your OS. Frontends … | |
Re: Create a variable for units and a variable for tens. Decrement the units variable, then pass each to a subroutine which checks its value and sends out the particular code. If the units variable is zero, it becomes nine and decrement the tens variable. | |
Re: [QUOTE]your chip don't have EEPROM data memory? [/QUOTE] The program is written to flash program memory and can be rewritten. EEPROM data memory is used for storing data. | |
Re: There's free versions of compilers for writing in other languages like C and Basic which come with libraries. If you used a few PICs, this wouldn't be difficult I wouldn't think. PICs can come with PWM outputs you could use. You could parallel the leds and switch a mosfet to … | |
Re: The only potential problem you can be sure about is that 'boolean' isn't a standard type. | |
Re: [url]http://forum.allaboutcircuits.com/showthread.php?t=12948[/url] When you post your question all over the internet, people don't know what answers you've been given and then waste their time by giving the same answers. | |
Re: This is one module for a particular application. [url]http://www.robotstore.com/store/product.asp?pid=817&catid=1600[/url] Maybe it's just the transducers you need [url]http://www.sunrom.com/index.php?main_page=product_info&products_id=74[/url] Here's a circuit using such transducers [url]http://www.leang.com/robotics/info/articles/minison/minison.html[/url] To answer your question, you could interface the sensors to a computer. You normally interface the sensors to a microcontroller and then to a PC. It … | |
| |
Re: [url]http://www.teuthis.com/html/daisy_mp3.html[/url] Unless you mean a player in software? | |
Re: After you read the command, it would be a case of one instruction to move a value into an address or a register. Why not spend a day at this tutorial. [url]http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm[/url] edit - Your chip has only 18 pins though. You might need something bigger for this project. | |
Re: [QUOTE]I found an interesting question on the internet... An interviewer asked a programmer "How would you divide without using division or multiplication?"[/QUOTE] Division is repeated subtraction. 6/3 = 2. 3 can be subtracted from 6 twice, until you're left with zero. Which explains why dividing by 0 is infinity. Multiplication … | |
Re: Download MPLAB from Microchip's website. Then go over your course notes. If they're not good enough, google for a tutorial. | |
Re: [QUOTE]i want to give the sleep in seconds..[/QUOTE] It doesn't matter. There's 1000 milliseconds in a second. If you want 5 seconds then you'd pass 5000 for example. | |
Re: Yes. You'd need to limit rand to the amount of cards in a deck. You'd typically use a switch statement instead of the if/else's there. You'll need a for loop to check if the card has already been drawn. Btw, the river is the fifth card dealt not the name … | |
Re: Maybe not. I'd recommend taking initiative even so. It's how students stand out from the rest and it shouldn't be difficult. [url]http://www.purplemath.com/modules/exponent2.htm[/url] | |
Re: Basically, why use global variables when they aren't necessary. You have tighter control over local variables. You decide what sees them. Some situations I find global variables are useful, like in a program that has mutliple files when passing parameters to functions isn't practical. That's my opinion. | |
Re: Your syntax is fine. Run this and check. [code=C]#include <stdio.h> int main() { FILE *fp=fopen("c:\\documents and settings\\test.txt","w"); fputs("test", fp); fclose(fp); return 0; } [/code] | |
![]() | Re: It doesn't have anything specific. Just don't use anything that isn't standard C. |
Re: Gave me a fright there for a minute. We celebrate it on a different day. | |
Re: Microcontrollers are mainly programmed in assembly still. C has advantages when it comes to things like decision making. Assembly has advantages when you need precise delays. Other times, the program would just end up one liner C statements anyway, so there isn't much point. | |
Re: I think you're mixing up RAM with your computer's Hard Disk Space? [url]http://docs.info.apple.com/article.html?artnum=61131[/url] | |
Re: fseek is causing the problem. Make sure to return a value from main. Also, learn how to use code tags - the yellow background behind your code. Edit - fseek is probably causing the problem. Your code works fine if you create a new text file and comment it out. | |
Re: You might want to look at the PICkit 2 Debug Express. I haven't used either but it supports ICD and you could save yourself 100 euro if it's good enough for what you need. | |
Re: Install GiveIO, it will give you access to the ports under XP. | |
Re: itoa is a non-standard function. Have a look at sprintf instead. [url]http://www.cplusplus.com/reference/clibrary/cstdio/sprintf.html[/url] | |
Re: Code::Blocks [url]http://www.codeblocks.org/[/url] It comes with GCC and has support for numerous others. | |
Re: A timer interrupt is generally one that uses the processor's clock to generate an interrupt periodically, not one that uses an outside signal. | |
Re: No. Don't learn C if you want to learn C++. It make things worse. Just start with C++ if you want to learn C++. | |
Re: [url]http://images.google.ie/images?hl=en&safe=off&q=flowchart&um=1&ie=UTF-8&sa=N&tab=wi[/url] | |
Re: Hi Nimz. When declaring variables, there's a few rules. Scroll down to [I]Names in C++[/I] here [url]http://www.functionx.com/cppcli/variables/Lesson03.htm[/url] See then if you can spot anything wrong with how the variables are declared in your program on lines 6, 7, 8. After that, check the rest of the program, and see if … | |
Re: It won't work and you will probably fry the port. Why are you trying to do this? | |
Re: The 7485 compares two 4-bit numbers, and tests if one is larger, smaller or equal to the other. The logic diagram is shown in the datasheet. [url]http://www.cs.smith.edu/~thiebaut/270/datasheets/sn74ls85rev5.pdf[/url] | |
![]() | Re: Well, If you don't want to start with asm, you could use BASIC. You don't need PWM if you just want to turn LEDs on and off. Any fixed square wave will do it. In other words, just toggle the pins. There's a free version of the Swordfish compiler you … |
Re: I think you might be looking for this function [url]http://www.cs.colorado.edu/~main/cs1300/doc/bgi/getimage.html[/url] See this too. [url]http://www.geocities.com/SiliconValley/Park/3230/pas/pasl2007.html[/url] | |
Re: Do you have any C knowledge. Is there much code? |
The End.