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.
Of course you can do.
A few months ago i connected a pc to pic using 2 com port. One for debug, other one for commands and data.
First of all you will need a pc with 2 com ports or usb to serial convertors.
I wrote a visual basic program for this. (Real program in delphi but it is only for...
Re: 24256 eeprom problem
mmm, you must right.
because, it has a logo ST and right side of the logo there is a text PHIL
strange. i think it is a philips but seems not. after your post, i looked with magnifying glass then i saw this detail. i gave wrong information, my error, i'm sorry.
i...
i bought 24256 eeproms.
they are only responding i2c device code A0, other codes A2,A4,A6,A8 .. etc not work. i have pcb with six 24lc256 (device code from A0 to AA. )
i put one 24256 to A0 socket eveything is ok.
then i move same part to A2 it still responds as A0. A4,A6,A8,AA still same. it...
2:22 time strange
thanks for replies.
most reading problems solved, but still this problem occurs time to time.
then i changed the part pcf8583, now i'm using ds1307.
with ds1307 everything goes properly. no problem since 10 days.
pic16f84 clock 32768
hi,
look at
hxxp://users.skynet.be/bk317494/
you will find DS1307 real time clock project...
if you want to use single pic like pic16f84 and interrupts, most probably you want 1 interrupt per second. if then, look at
hxxp://www.picant.com/c2c/c.html
you find...
also you may try
void DoEvents(void)
{
MSG msg;
while(PeekMessage(&msg,NULL,0,0,PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
it is working but application doesn't gracefully terminated...
you must exit from this loop.
while...
try this one. no another thread.
void DoEvents()
{
MSG dispatch;
while (::PeekMessage( &dispatch, NULL, 0, 0, PM_NOREMOVE))
{
if (!AfxGetThread()->PumpMessage());
}
}
in your loop call call DoEvents();
while (...........)
{
...
Re: Thread Programming
Note:
TLS : Thread Local Storage
VB5, VB6 uses TLS to store ERR object, APP objects etc.
this means accessing them from another threats may not good for your program.
sure that best way is using dlls.
Re: Thread Programming
if you ask for standart exe files, of course its possible.
in vb6 you can create and control threads via apis. but it can be difficult.
no native support for threads in std exes.
there are still main problem if you choose api way...
vb5, vb6 uses tls for main objects...
basically they are totaly different.
in dotnet everything is an object based.
main feature = .net framework.
.net framework starts new concept for programmers.
.net doesn't compile program into exe files like java. .net programs requires .net framework to run. it is possible but not now...
vb 6.0 delay without timer
TRUNGDPHAN asked: Do you have any ways to delay that doesn't depend on the system?
the result of QueryPerformanceCounter/QueryPerformanceFrequency is system INDEPENDED. look attachment.
vb 6.0 , put timer delay
sorry, i'm away.
Please read papyaki's post . Performance Counter is comes from hardware and can change from system to system.
(seconds) = QueryPerformanceCounter / QueryPerformanceFrequency
if you read two value you can get difference...
delay function in vb 6.0
TRUNGDPHAN,
you can't use VB's timer component to wait/pause 10ms.
also timer function is useless for 10ms.
check your system. Timer Component and timer function's resulation depends on computer you are using.
min resulation is from 16.25ms to 55ms in most...
how to set up a delay timer in vb 6.0
Easy question, easy answer. why? because you want pause code, not timer...
in the attachment you will find related routines.
if you want to gui replying or using events
Call WaitDoeventsX (WaitTimeInMilliseconds)
else use
Call WaitX...
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.