Search results

  1. T

    I2C with M2 parts

    Has anyone tried using the M2 parts as a slave on I2C bus, the manual says "hi2csetup - slave mode (X2 parts only) " so I'm a bit confused as to if its possible ? Martin
  2. T

    Problems programming in circuit with 2 40X2s as master / slave

    Thought I might save someone else a couple of hours checking circuits, changing chips etc. My circuit consists of a 40X2 data logger saving to a Vdrive2 and I use a second 40X2 as a slave using the I2C bus to display the data on a 4 X 20 LCD as well. Two chips are needed as the datafile is 1024...
  3. T

    X2 thoughts ?

    Trying to get my head around the new facilities on the X2 chips, if any PIN can be I/O then is it possible to do this ? dirsc = %00000000 ' all inputs readtemp12 c.1,w1 ' save in b0 and b1 i.e having upto 32 temperature recorders ( on 40X2 ) ! The PE doesn't throw a syntax error...
  4. T

    I2C mixing devices

    I've read on previous postings that mixing different speed I2C devices on the same BUS causes problems, I can see the reasoning behind that, but does that also apply to mixing Byte and Word addressed devices on the same BUS?
  5. T

    Improving readability

    I'm in the process of writing a fairly complex ( for me ) program / hardware using 2 * 40X1 sharing a common I2C bus. My problem is not in getting it to work but I like to use meaningful names as symbols rather than PIN numbers etc. i.e symbol master_1_i2c_requesting = pin5 Which was ok until...
  6. T

    using I2C with background serial receive

    I’m wondering if there is another bug around the hardware serial function and the hi2c functions similar to the pwmout problem reported by Terry Barnaby. I have used the hardware serial with a Vdrive2 which worked perfectly until I added a DS1307 RTC on the I2C bus. I now find that if a...
  7. T

    simulator crashing using hi2cin

    I've just tried this simple code on 5.1.4 simulator and it ends up crashing ( not responding ) the program ? ' fill eeprom with screen info setfreq em16 hi2csetup i2cmaster,%10100000,i2cfast_16,i2cword hi2cout 0,("A dummy screen") hi2cin 0,(b1) All is ok until the hi2cin command...
  8. T

    v2drive

    I’ve just bitten the bullet and got a V2drive unit with a 40X1 picaxe, has anyone actual got this to work ( I’m using the suggested trial program from technical )? The drive initialises but when pinged with “E” as suggested ( $45 ) it returns $85 and CR most of the...
  9. T

    I2C master - slave connection distance

    I'm thinking of using 2 ( or more ) 40X1 chips connected together using cat 5 cable over a distance of 30 mtrs or so on the I2C bus. Has anyone tried this ? Would changing the values of the pull up resistors improve noise immunity ? or using 1 pair ( second wire at signal ground ) for each of...
  10. T

    Select case / gosub / and IF

    I’m having trouble de-bugging a particular project, the logic of the code is represented below, I’m wondering if although the compiler doesn’t issue an error you can’t use GOSUBS within a CASE type statement with If statements ? If I “rem” the If statements...
  11. T

    Multiple Picaxes controlled from a PC

    After a lot of experimenting with hardware handshaking I gave up ! but still kept looking at the forum to see other ideas. One of which from Mike Collier got me trying again.I tried his method but couldn't get the characters to echo without corruption so went back to the manual. sample program...
  12. T

    simple decode of negative temperatures from DS18B20

    Help ! I seem to be going round in circles trying to use this slightly more accurate ( than 8 bit ) readtemp12 with negative numbers! for positive temps( >= 0 ) code is as follows but using a branch on the sign value in b5 with my limited knowledge of 2's compliment maths is doing my head...
Top