{"action":"created","issue":{"url":"https://api.github.com/repos/ComputerNerd/ov7670-no-ram-arduino-uno/issues/11","labels_url":"https://api.github.com/repos/ComputerNerd/ov7670-no-ram-arduino-uno/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ComputerNerd/ov7670-no-ram-arduino-uno/issues/11/comments","events_url":"https://api.github.com/repos/ComputerNerd/ov7670-no-ram-arduino-uno/issues/11/events","html_url":"https://github.com/ComputerNerd/ov7670-no-ram-arduino-uno/issues/11","id":100545615,"number":11,"title":"Configuration settings not saved after restart","user":{"login":"TodorGinchev","id":10463121,"avatar_url":"https://avatars.githubusercontent.com/u/10463121?v=3","gravatar_id":"","url":"https://api.github.com/users/TodorGinchev","html_url":"https://github.com/TodorGinchev","followers_url":"https://api.github.com/users/TodorGinchev/followers","following_url":"https://api.github.com/users/TodorGinchev/following{/other_user}","gists_url":"https://api.github.com/users/TodorGinchev/gists{/gist_id}","starred_url":"https://api.github.com/users/TodorGinchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TodorGinchev/subscriptions","organizations_url":"https://api.github.com/users/TodorGinchev/orgs","repos_url":"https://api.github.com/users/TodorGinchev/repos","events_url":"https://api.github.com/users/TodorGinchev/events{/privacy}","received_events_url":"https://api.github.com/users/TodorGinchev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-12T13:38:01Z","updated_at":"2015-08-13T14:44:51Z","closed_at":null,"body":"Hello everyone,\r\n\r\nI noticed something very interesting (and in my case very bad for my project). \r\n\r\nWith the @ComputerNerd  code, I am able to change the PCLK clock and get 1MHz (being XCLK 8MHz) by changing the register 0x11, which configures the clock divider. \r\n\r\nGood for now. The interesting stuff happens when the camera is powered off and on. If I do not change again the register 0x11, the XCLK will be 8MHz.\r\n\r\nIs there any way to save the register state? Thank you!\r\n\r\nRegards.\r\nTodor."},"comment":{"url":"https://api.github.com/repos/ComputerNerd/ov7670-no-ram-arduino-uno/issues/comments/130711652","html_url":"https://github.com/ComputerNerd/ov7670-no-ram-arduino-uno/issues/11#issuecomment-130711652","issue_url":"https://api.github.com/repos/ComputerNerd/ov7670-no-ram-arduino-uno/issues/11","id":130711652,"user":{"login":"TodorGinchev","id":10463121,"avatar_url":"https://avatars.githubusercontent.com/u/10463121?v=3","gravatar_id":"","url":"https://api.github.com/users/TodorGinchev","html_url":"https://github.com/TodorGinchev","followers_url":"https://api.github.com/users/TodorGinchev/followers","following_url":"https://api.github.com/users/TodorGinchev/following{/other_user}","gists_url":"https://api.github.com/users/TodorGinchev/gists{/gist_id}","starred_url":"https://api.github.com/users/TodorGinchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TodorGinchev/subscriptions","organizations_url":"https://api.github.com/users/TodorGinchev/orgs","repos_url":"https://api.github.com/users/TodorGinchev/repos","events_url":"https://api.github.com/users/TodorGinchev/events{/privacy}","received_events_url":"https://api.github.com/users/TodorGinchev/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T14:44:51Z","updated_at":"2015-08-13T14:44:51Z","body":"BTW, @ComputerNerd, this comment here is wrong, I think: \r\n\r\n while(!(PIND&8));//wait for low\r\n  while((PIND&8));//wait for high\r\n\r\nIt should be:\r\n\r\n  while(!(PIND&8));//wait for low\r\n  while((PIND&8));//wait for high\r\n\r\nBut the code is OK, it waits to VSYNC to become low and high, when the frame starts.\r\n\r\nBut there is something very interesting that I found out and if I am right I don't understand how is that your code works: when the frame starts, even if VSYNC is high, there is a delay before the data sending starts (and delay after every \"row\" of the image matrix). You don't use HREF, how do you control those delays? I mean, how do you know when the delay starts and ends? PCLK and VSYNC do not seem sufficient to me (most probably I am wrong).\r\n\r\n\r\nRegards.\r\nTodor."}}