Having trouble writing to EEPROM
okay, i'm brand new eeprom , have small program that's meant read data off 1 chip, , turn around , write next chip connect. i've written check routines program, , seems some of bytes i'm entering writing properly. i'm unfamiliar eeprom interfaces , onewire library, it's possible i'm doing totally wrong. getting accurate copy of chip appreciated. i've included code , output below, , i'm using pair of ds2433 chips wired pin 10 , ground, pullup resistor +5v arduino on input pin.
if you'd more data on setup haven't included here, please ask , i'll happy provide it! or if you'd me clarify of code, know it's in shambles.
code: (serial output) [select]
device present
data is:
127 165 211 203 231 31 187 198 128 18 205 137 228 187 177 94 55 108 148 7 68 37 128 164 167 78 246 138 15 176 177 36 171 48 111 178 175 96 31 111 72 179 70 55 155 172 223 81 72 179 70 55 155 172 223 81 56 243 119 54 43 249 197 209 25 97 0 0 0 0 252 169 85 170 85 37 81 58 95 190 7 186 0 0 0 0 0 0 151 133 146 190 183 181 21 96 144 1 34 248 0 0 0 0 83 84 82 65 84 65 83 89 83 221 242 184 43 123 30 110 30 111 200 221 87 208 147 90 162 73 93 41 51 29 163 254 145 227 141 144 54 207 14 127 125 192 248 117 89 202 65 79 24 16 14 252 24 13 120 91 195 17 44 60 237 171 36 5 110 26 241 253 86 84 118 30 138 249 169 28 201 104 160 170 90 120 237 81 121 174 174 79 136 223 146 166 233 223 183 152 33 56 232 213 5 168 187 117 133 35 125 149 206 161 148 93 236 145 78 150 6 145 76 79 253 246 242 177 70 177 78 131 98 210 190 129 139 43 117 204 211 222 107 207 242 29 2 238 128 156 54 115 215 43 141 250 158 21 201 28 219 70 223 126 58 30 52 244 33 145 100 197 8 170 48 37 54 217 99 243 128 88 94 71 129 35 135 149 103 108 187 212 100 139 80 237 82 145 99 87 211 221 4 166 86 14 25 178 44 76 92 77 242 148 103 120 194 225 169 166 99 183 60 227 255 158 212 186 243 105 11 175 63 20 178 154 137 57 170 92 119 156 122 53 152 190 173 179 154 41 234 156 6 61 35 166 217 104 110 88 245 148 56 141 102 66 166 189 94 99 75 145 208 55 67 38 40 18 66 131 207 228 170 81 207 154 156 28 40 50 230 75 63 139 57 138 220 200 132 98 153 251 23 214 205 167 103 125 22 248 81 212 204 248 63 45 165 107 193 33 131 9 63 235 148 44 174 149 37 102 173 215 120 189 172 126 138 83 80 32 132 253 124 107 101 103 38 204 253 235 110 237 108 140 166 126 29 56 5 11 60 43 71 223 215 28 20 31 245 23 112 49 55 154 201 226 21 208 12 184 50 238 13 107 159 30 159 40 51 217 248 157 245 4 242 110 16 224 245 50 61 180 97 59 187 62 183 72 246 131 31 222
device reset. read ended.
writing collected data in 10...
9...8...7...6...5...4...3...2...1...sending reset pulse now!
presence pulse received, sending skip rom check (0xcc)
sending write scratchpad(0x0f)
setting write address
begining write of collected data....
starting @ byte number
0
127 165 211 203 231 31 187 198 128 18 205 137 228 187 177 94 55 108 148 7 68 37 128 164 167 78 246 138 15 176 177 36 wrote batch of 32 bytes
sending reset pulse now!
presence pulse received, sending skip rom check (0xcc)
sending read scratchpad (0xaa)
123 165ok 147 195 69 31ok 179 70 128ok 18ok 205ok 9 228ok 179 145 30 55ok 100 148ok 7ok 68ok 36 128ok 164ok 163 78ok 212 138ok 15ok 32 177ok 36ok authorization codes have been read.
sending reset pulse now!
presence pulse received, sending skip rom check (0xcc)
sending copy scratchpad (0x55)
sending authorization codes (
0 0 31)waiting 50ms scratchpad finish copying...
sending reset pulse now!
presence pulse received, sending skip rom check (0xcc)
sending write scratchpad(0x0f)
setting write address
begining write of collected data....
starting @ byte number
32
171 48 111 178 175 96 31 111 72 179 70 55 155 172 223 81 72 179 70 55 155 172 223 81 56 243 119 54 43 249 197 209 wrote batch of 32 bytes
sending reset pulse now!
presence pulse received, sending skip rom check (0xcc)
sending read scratchpad (0xaa)
163 48ok 47 178ok 173 96ok 31ok 111ok 64 179ok 70ok 55ok 155ok 172ok 223ok 81ok 72ok 179ok 66 55ok 10 172ok 223ok 65 56ok 242 119ok 54ok 9 241 197ok 65 authorization codes have been read.
sending reset pulse now!
presence pulse received, sending skip rom check (0xcc)
sending copy scratchpad (0x55)
sending authorization codes (
32 0 23)waiting 50ms scratchpad finish copying...
sending reset pulse now!
(truncated due post length limit)
if you'd more data on setup haven't included here, please ask , i'll happy provide it! or if you'd me clarify of code, know it's in shambles.

quote
i have small program that's meant read data off 1 chip
are lays chips? i'm sure tim's cascade chips don't have eeproms.
perhaps, if told kind of chips are, help.
Arduino Forum > Using Arduino > Storage > Having trouble writing to EEPROM
arduino
Comments
Post a Comment