User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 455,996 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,843 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 289
Search took 0.02 seconds.
Posts Made By: Colin Mac
Forum: Assembly 19 Hours Ago
Replies: 2
Views: 50
Posted By Colin Mac
Re: wat does this do

Writing FNAME in the program will be the same as writing 9EH.
Forum: C 1 Day Ago
Replies: 2
Views: 67
Posted By Colin Mac
Re: Could anyone explain pointers?

int i;
int *p;

p = &i; // p holds the address of i

*p = 10;
The last assignment says take the value in p, go to that address and put 10 there.
Therefore, i now holds 10.

To prove that you could...
Forum: C++ 2 Days Ago
Replies: 18
Views: 297
Posted By Colin Mac
Re: Real time clock

Have a microcontroller generate the PWM.
You can communicate with the microcontroller using the PC.
Forum: C 11 Days Ago
Replies: 11
Views: 264
Posted By Colin Mac
Re: Counting occurences of a number in array

In your 2nd for loop i starts at 1. In the first i starts at 0. You're incrementing counters[a[i]]
but you're displaying counters[i].
Forum: Computer Science and Software Design 23 Days Ago
Replies: 7
Views: 464
Posted By Colin Mac
Re: Idea for Final Year Project

If you need to get ideas from other people for your own projects you musn't be very interested.
Forum: Windows 9x / Me 23 Days Ago
Replies: 8
Views: 279
Posted By Colin Mac
Re: help me please! windows 98 - dont know...

The link in the sig tries to make you download spyware.
Forum: Assembly 27 Days Ago
Replies: 9
Views: 305
Posted By Colin Mac
Re: help with instraction waveforms

04H is read from 571AH. 13H is read from 571BH.
04H is the opcode for INC A.
13H is the opcode for RRC A.
Forum: Assembly 27 Days Ago
Replies: 9
Views: 305
Posted By Colin Mac
Re: help with instraction waveforms

http://www.ustr.net/lcd001.shtml

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...
Forum: Assembly 28 Days Ago
Replies: 4
Views: 240
Posted By Colin Mac
Re: what did this instruction do ?

If P1.2 is set and you move P1.2 to C, then C is set.
Forum: Assembly 28 Days Ago
Replies: 4
Views: 240
Posted By Colin Mac
Re: what did this instruction do ?

MOV C, P1.2 simply moves the value on the port pin to the carry.
Forum: Assembly 28 Days Ago
Replies: 9
Views: 339
Posted By Colin Mac
Re: simple assembly code help needed

You've stepped passed the end of your program. Are you asking stupid questions on purpose?
Forum: Assembly 28 Days Ago
Replies: 9
Views: 339
Posted By Colin Mac
Re: simple assembly code help needed

Only line 12 tests if the pin is clear.
Line 13 might never be executed.
Forum: Assembly 28 Days Ago
Replies: 9
Views: 339
Posted By Colin Mac
Re: simple assembly code help needed

Line 12 says jump to next if P0.2 is not set.
You need to clear P0.2.
Forum: Assembly 28 Days Ago
Replies: 9
Views: 339
Posted By Colin Mac
Re: simple assembly code help needed

There isn't anything wrong with it.
Forum: Assembly 28 Days Ago
Replies: 9
Views: 339
Posted By Colin Mac
Re: simple assembly code help needed

What's your question? You've just posted your assignment.
Forum: Assembly 28 Days Ago
Replies: 9
Views: 298
Posted By Colin Mac
Re: Need help ADDRESS ERROR - ACCESS problem

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...
Forum: Geeks' Lounge Sep 28th, 2008
Replies: 483
Views: 17,323
Posted By Colin Mac
Re: 2008 US Presidential Poll Part 2

While I read those links, pick apart how Palin been able to see Russia from Alaska makes
her knowledgeable on foreign policy.
Forum: Geeks' Lounge Sep 28th, 2008
Replies: 483
Views: 17,323
Posted By Colin Mac
Re: 2008 US Presidential Poll Part 2

Sarah Palin hasn't heard of the Bush Doctrine.
http://ie.youtube.com/watch?v=ntEE9Zy-qQQ
Forum: Geeks' Lounge Sep 22nd, 2008
Replies: 483
Views: 17,323
Posted By Colin Mac
Re: 2008 US Presidential Poll Part 2

LOL, you don't know my thinking.
Forum: C++ Sep 22nd, 2008
Replies: 10
Views: 597
Posted By Colin Mac
Re: Sound Visulisation/Frequency View

An XY graph with amplitude on Y-axis and time on the X-axis. Excel or any software with good graphing capabitlites should do.

This is how 5 samples of 8-bit PCM with a sampling frequency of 1KHz...
Forum: C++ Sep 21st, 2008
Replies: 10
Views: 597
Posted By Colin Mac
Re: Sound Visulisation/Frequency View

http://www.intmath.com/Fourier-series/7_Fast-fourier-transform-FFT.php

I believe that's only useful for describing
the wave mathematically, as a series of sines and cos waves added together (which...
Forum: Geeks' Lounge Sep 20th, 2008
Replies: 483
Views: 17,323
Posted By Colin Mac
Re: 2008 US Presidential Poll Part 2

What's the alternative? - Christian Serbs fleeing their land, ethnic Albanians burning churches to the ground and the rise of Islamic fundamentalism backed by Saudi money in Kosovo.
Forum: Geeks' Lounge Sep 20th, 2008
Replies: 483
Views: 17,323
Posted By Colin Mac
Re: 2008 US Presidential Poll Part 2

No one died when Clinton lied. But they did when Yugoslavia got bombed.
http://www.antiwar.com/pilger/?articleid=11421
Forum: C++ Sep 19th, 2008
Replies: 10
Views: 597
Posted By Colin Mac
Re: Sound Visulisation/Frequency View

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...
Forum: C Sep 19th, 2008
Replies: 2
Views: 338
Posted By Colin Mac
Re: How to color the text in microsoft visual c++?

http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles4.html
Forum: C++ Sep 18th, 2008
Replies: 4
Views: 504
Posted By Colin Mac
Re: c++ hardware programming tutorials

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 have a parallel port). Your operating system is also a factor.
Forum: Computer Science and Software Design Aug 28th, 2008
Replies: 1
Views: 552
Posted By Colin Mac
Re: PC and Mobile Phone Control

Your mobile may have a certain AT command set which would define all the information you can retrieve, via a serial connection, which might be RS-232 although Nokia usually use the FBUS protocol....
Forum: Assembly Aug 28th, 2008
Replies: 3
Views: 436
Posted By Colin Mac
Re: detecting log off operation

You'll need a 8051 with USB support, or a UART-USB
converter. Try here for that.
http://www.ftdichip.com/
Forum: C++ Aug 24th, 2008
Replies: 4
Views: 433
Posted By Colin Mac
Re: COM port emulator

A loopback test would verify that.
http://zone.ni.com/devzone/cda/tut/p/id/3450
Forum: Computer Science and Software Design Aug 6th, 2008
Replies: 10
Views: 1,037
Posted By Colin Mac
Re: speech recognition system

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...
Forum: C Aug 6th, 2008
Replies: 24
Views: 1,086
Posted By Colin Mac
Re: help with calculator

Turbo C programs don't run directly under windows. They run in the Virtual DOS machine, which makes the process less efficent.

The VDM isn't included with the most recent versions of Windows...
Forum: C Aug 5th, 2008
Replies: 11
Views: 901
Posted By Colin Mac
Re: how to detect arrow keys??

This program only works in Turbo C.

#include <stdio.h>
#include <conio.h>

int main(void)
{
unsigned char key, key2;

while( (key=getch()) != '\r' )
Forum: C++ Aug 3rd, 2008
Replies: 8
Views: 375
Posted By Colin Mac
Re: Question about C++

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 are often written for...
Forum: C Aug 3rd, 2008
Replies: 3
Views: 2,174
Posted By Colin Mac
Re: Socket Programming

I'm sure WolfPack will be glad to finally hear from you.
Forum: Assembly Aug 2nd, 2008
Replies: 8
Views: 1,405
Posted By Colin Mac
Re: 7 segment countdown from 99 with atmel 89s51??

The AT89C2051's output drops to 2.4V when it's output high is only 80uA. The base current of Q2 will never reach 1.9mA. The chip sinks 20mA so PNP transistors should be used.
Forum: C Aug 1st, 2008
Replies: 9
Views: 578
Posted By Colin Mac
Re: anyone knows chip programming with c

The program is written to flash program memory and can be rewritten. EEPROM data memory is used for storing data.
Forum: C Jul 31st, 2008
Replies: 9
Views: 355
Posted By Colin Mac
Re: Help Me!!!

How do you convert a decimal to fraction on paper?
Forum: Assembly Jul 22nd, 2008
Replies: 3
Views: 1,175
Posted By Colin Mac
Re: Control Many LED's PWM

Some 18F's have multiple PWM outputs.

I'm sure you could also implement it in software using interrupts. If you can generate PWM on
one pin, you can do the inverse on another.
Forum: Assembly Jul 22nd, 2008
Replies: 3
Views: 1,175
Posted By Colin Mac
Re: Control Many LED's PWM

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...
Forum: Assembly Jul 17th, 2008
Replies: 8
Views: 1,405
Posted By Colin Mac
Re: 7 segment countdown from 99 with atmel 89s51??

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...
Showing results 1 to 40 of 289

 
All times are GMT -4. The time now is 9:45 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC