Search found 297 matches

by guyfoc
07 Feb 2011 10:13
Forum: mikroBasic General
Topic: Interrupt USART receive for reliable serial interface.
Replies: 9
Views: 11623

Re: Interrupt USART receive for reliable serial interface.

sorry but i forget a lot from that time
i was using Mbasic 7.2 version and i do not know the next version at all ...so can not help you
reg guy
by guyfoc
23 Dec 2008 08:15
Forum: mikroBasic General
Topic: onewire speed
Replies: 3
Views: 1882

you can also have more than one one wire bus for ex one for the temp and an other for your ds2408 and before reading the temp during conv time you can access the ds2408 ??
by guyfoc
23 Dec 2008 08:13
Forum: mikroBasic General
Topic: onewire speed
Replies: 3
Views: 1882

see my alarm ex s ,the ds2408 has latches that can keep a previous state change ( and the time you goes in your loop depants of what you do ( not a onewire timing speed) just a little prob using the latch: the latch that hold the openning of a sw is latched when the sw return to previous state close...
by guyfoc
20 Aug 2008 08:09
Forum: mikroBasic General
Topic: ex of a VELUX window IR ctl added to my ethernet pic enc
Replies: 0
Views: 1369

ex of a VELUX window IR ctl added to my ethernet pic enc

i added this module to my alarm ctl via ethernet enc28j60 it can ctl via infra red a window VELUX to open , pause,close and same with the store . i looked at the IR telecmd and reproduce exactly the same IR via the pic RB0 line here the module working: module IR ' to ctl like the IR telecmd the moto...
by guyfoc
15 Aug 2008 09:30
Forum: mikroBasic General
Topic: Solution for Problem with DS18B20
Replies: 13
Views: 4937

do you use parasistic pwr for the dev ?
what is the type and length of the cable used ?
try using a lower pull up resistor 2k ...(min 1k)
by guyfoc
05 Jul 2008 07:56
Forum: mikroBasic General
Topic: onewire easypic 4
Replies: 3
Views: 2631

i use this ,have a look module devices_detection dim AA,BB,i,index,last_dis,done_flag,disc_mkr as byte ' var A used in 18f4520 file dim rombit as byte[65] dim v,t,ti,ww as byte dim OW as byte[255] ' store for 4x DS1820 serial s dim text0,text1,text2,text3,textx as string[8] dim text as string[30] di...
by guyfoc
02 Jul 2008 12:39
Forum: mikroBasic General
Topic: onewire easypic 4
Replies: 3
Views: 2631

at first look it seems to me that this is probably not for a ds18B20 but for ds18s20or ds1820
the scratch pad that means the low and high byte formating of the temp are diff
see the data sheet at maxim
by guyfoc
05 Apr 2008 09:54
Forum: mikroBasic General
Topic: I need help for the PIC18f4520
Replies: 2
Views: 1584

read the data sheet there are diff for the adc probably
or post your code...
ex ' special for 18F4520 diff of the 18f452 or 16f877...
ADCON1 = %00001010 ' ADC convertors will be used AN0-4 =Analog AN5-12 = dig =RE1,RE2,RE0 ....
CMCON =%00000111 ' compa off
by guyfoc
16 Mar 2008 18:10
Forum: mikroBasic General
Topic: Davinci Brain Found
Replies: 32
Views: 13967

hope you will be quick restablished and in good condition to continue your good job :D
guy
by guyfoc
16 Mar 2008 18:01
Forum: mikroBasic General
Topic: Convert Multiple Inputs to One Wire
Replies: 2
Views: 1699

you can send serialy 15 bytes (x 8bits) = 120 posi on or off using a current loop that is not very quick but very usefull if strong noise you can sent a clock pulse ex: shift high to low then if a one bit ,set the level again hight or for a zero bit keep it low after the clock and make a sample of t...
by guyfoc
24 Feb 2008 11:53
Forum: mikroBasic General
Topic: UDP terminal info for beginner s
Replies: 1
Views: 1643

UDP terminal info for beginner s

for beginners like me learning ethernet: ENC28j60 with YO2LIO libs, :D if you use the MB UDP Terminal to receive udp msg from your ENC ( ENC sending a msg not responding ) , i must say that this terminal seems to listen only to the port 6767 so put this : dest_port = 6767 if you use the YO2LIO libs ...
by guyfoc
21 Feb 2008 17:14
Forum: mikroBasic General
Topic: A little problem reading a schematic
Replies: 3
Views: 1830

calcul of the resonnance freq of a L and C circ is
c=150nf or 150.10exp-9 ( 0,00000015)
L=6.8mh or 6.8.10exp-3 ( 0.0068)
C.L =0.000000001
square root of that C.L=0.000031937
2pi=6.28
2pi.sqrtC.L=0.0002
1/2pi.sqrtC.L=4983hz resonnance freq
by guyfoc
21 Feb 2008 16:58
Forum: mikroBasic General
Topic: ENC28J60 Library V3.3 full source code
Replies: 97
Views: 88177

:D tested the 1st version and ok thks again for promp update rem: please say us when you have updated the pascal lib1.mcl and lib2.mcl ( keep your time) because to test this change: i used the lib1.pbas and modify it, then compile it with the definition_ENC.pbas present in the dir, it compile ok but...
by guyfoc
21 Feb 2008 11:03
Forum: mikroBasic General
Topic: A little problem reading a schematic
Replies: 3
Views: 1830

very probably =0pf
and // freq of resonnance of the 147nf with 6.8mh = 5khz
f=1 / (2pi*square root of (L*C))
by guyfoc
20 Feb 2008 18:14
Forum: mikroBasic General
Topic: ENC28J60 Library V3.3 full source code
Replies: 97
Views: 88177

or test for 32 not 30

Go to advanced search