Search found 7 matches

by Tubes4sale
Sat Feb 14, 2015 4:37 pm
Forum: SUB-20 General Discussion
Topic: Writing to LTC1663 DAC
Replies: 3
Views: 23475

Re: Writing to LTC1663 DAC

I have found the problem, I was using the address that SUB20 returned after a SCAN for devices. SUB-20 returns 7E no matter what configuration a make with inputs A0, A1 and A2. When I use the address that is stated in the data sheet from the LTC1663(9) the write to LTC1663 works fine. The only thing...
by Tubes4sale
Sat Jan 17, 2015 4:28 pm
Forum: SUB-20 General Discussion
Topic: Writing to LTC1663 DAC
Replies: 3
Views: 23475

Writing to LTC1663 DAC

I try to write data to the LTC1663 DAC with de SUB 20 tool version 1.6.15
I get a error from SUB20 tool:
i2c status:48
ERROR: I2C error

0x48 SLA+R transmitted; NAK received

What does this error means ?
by Tubes4sale
Sat Jul 30, 2011 9:54 am
Forum: SUB-20 General Discussion
Topic: Writing outputs seperately on IC PCF8574
Replies: 5
Views: 13086

Re: Writing outputs seperately on IC PCF8574

Hi, The address range for the PCF8574 is &H20 to &H27 and for PCF8574A is &H38 to &H3F. To write a output data is &H01'(bin 1) for ouput 1, &H02(bin 10) for ouput 2, &H04 (bin 100)for ouput3, &H08 (bin1000) for output 4 etc. My problem is when output1 is 1 and I want to write output 3 on the same PC...
by Tubes4sale
Fri Jul 29, 2011 5:39 pm
Forum: SUB-20 General Discussion
Topic: Writing outputs seperately on IC PCF8574
Replies: 5
Views: 13086

Re: Writing outputs seperately on IC PCF8574

Code to write to several PCF8574 only writing one output 'START WRITE PINS Private Sub DoI2CWrite_pin(ByVal Card As String, ByVal data As String, ByVal test As Boolean) 'local variable Dim Sub20 As New Xdimax.Sub20 Dim StrBytes As String() Dim Bytes As Byte() Dim i As Integer Dim N As Integer Dim Wr...
by Tubes4sale
Fri Jul 29, 2011 5:20 pm
Forum: SUB-20 General Discussion
Topic: Writing outputs seperately on IC PCF8574
Replies: 5
Views: 13086

Writing outputs seperately on IC PCF8574

Hi, I am using the SUB -20 to write outputs of several PCF8574 that controls relays. I can write to a single outputs, But I am not able to write another output without changing the other output . What I a want to do is write the different outputs separately. Can anyone help. I am using VB.net 2010. ...
by Tubes4sale
Tue Dec 28, 2010 9:38 pm
Forum: SUB-20 General Discussion
Topic: Write GPOI output 31 fault
Replies: 8
Views: 19836

Write GPOI output 31 fault

Hello, When I use gpiowrite to activate ouputs, everthing works fine until ouput 30, when I use 31 I get the fault message (see picture). When I use the hex value and code: If Not Sub20.GPIO_Write(Val("&H" + GpioValue.Text), Val("&H" + GpioMask.Text)) Then ' AddInfoLine("failed, err=" + Sub20.GetLas...
by Tubes4sale
Wed Oct 27, 2010 5:16 pm
Forum: SUB-20 General Discussion
Topic: Read input binairy value with GPIO_Read
Replies: 1
Views: 6314

Read input binairy value with GPIO_Read

How to read a specific input with GPIO_Read(). It returns a HEX value, don't know how to get the binairy value, for example input14.
Thanks